public void TestIsVersionNewer() { MacroscopeCheckForUpdate CheckForUpdate = new MacroscopeCheckForUpdate(); string CurrentVersion = "1.2.3.4"; Dictionary <string, bool> Versions = new Dictionary <string, bool>(); Versions.Add(CurrentVersion, false); Versions.Add("xxxx", false); Versions.Add("0.88.3.99", false); Versions.Add("1.3.3.4", true); Versions.Add("1.1.3.4", false); Versions.Add("10.99.17.69", true); foreach (KeyValuePair <string, bool> Version in Versions) { bool result = CheckForUpdate.IsVersionNewer(CurrentVersion: CurrentVersion, CompareVersion: Version.Key); Assert.AreEqual(Version.Value, result); } }