public void TestExtract() { int expected = 7; int actual = VersionUtil.ExtractVersionNumber("7.2.0", 0); Assert.AreEqual(expected, actual); expected = 2; actual = VersionUtil.ExtractVersionNumber("7.2.0", 1); Assert.AreEqual(expected, actual); expected = 0; actual = VersionUtil.ExtractVersionNumber("7.2.0", 2); Assert.AreEqual(expected, actual); }