Fix tests

This commit is contained in:
Alexander Schulz 2018-09-20 01:29:20 +02:00
parent 0a689672f9
commit 1037169252

View File

@ -116,16 +116,16 @@ namespace XenAdminTests.UnitTests.Diagnostics
}
[Test]
[TestCase("2.7.0", Description = "Lima", Result = false)]
[TestCase("2.6.0", Description = "Kolkata", Result = true)]
[TestCase("2.5.0", Description = "Jura", Result = true)]
[TestCase("2.4.0", Description = "Inverness", Result = true)]
[TestCase("2.3.0", Description = "Falcon", Result = true)]
[TestCase("2.1.1", Description = "Ely", Result = true)]
[TestCase("2.0.0", Description = "Dundee", Result = true)]
[TestCase("1.9.0", Description = "Creedence", Result = true)]
[TestCase("1.8.0", Description = "Clearwater", Result = true)]
[TestCase("9999.9999.9999", Description = "Future", Result = false)]
[TestCase("2.7.0", Description = "Lima", ExpectedResult = false)]
[TestCase("2.6.0", Description = "Kolkata", ExpectedResult = true)]
[TestCase("2.5.0", Description = "Jura", ExpectedResult = true)]
[TestCase("2.4.0", Description = "Inverness", ExpectedResult = true)]
[TestCase("2.3.0", Description = "Falcon", ExpectedResult = true)]
[TestCase("2.1.1", Description = "Ely", ExpectedResult = true)]
[TestCase("2.0.0", Description = "Dundee", ExpectedResult = true)]
[TestCase("1.9.0", Description = "Creedence", ExpectedResult = true)]
[TestCase("1.8.0", Description = "Clearwater", ExpectedResult = true)]
[TestCase("9999.9999.9999", Description = "Future", ExpectedResult = false)]
public bool TestIsHotfixRequiredBasedOnPlatformVersion(string version)
{
Mock<Host> host = ObjectManager.NewXenObject<Host>(id);