public void TestParseVersionNumber() { MacroscopeCheckForUpdate CheckForUpdate = new MacroscopeCheckForUpdate(); Dictionary <string, int[]> Versions = new Dictionary <string, int[]>(); Versions.Add("1.2.3.4", new int[] { 1, 2, 3, 4 }); Versions.Add("888.888.888.888", new int[] { 888, 888, 888, 888 }); Versions.Add("123.456.789.101", new int[] { 123, 456, 789, 101 }); foreach (KeyValuePair <string, int[]> Version in Versions) { int[] Parsed = CheckForUpdate.ParseVersionNumber(VersionString: Version.Key); Assert.AreEqual(Version.Value, Parsed); } }