public void Major_minor_missingPatch() { ShortVersion shortVersion; var result = ShortVersionParser.TryParse("1.2", out shortVersion); Assert.IsTrue(result); Assert.AreEqual(1, shortVersion.Major); Assert.AreEqual(2, shortVersion.Minor); Assert.AreEqual(0, shortVersion.Patch); }
public void Major_minor_missingPatch() { int minor; int major; int patch; var result = ShortVersionParser.TryParse("1.2", out major, out minor, out patch); Assert.IsTrue(result); Assert.AreEqual(1, major); Assert.AreEqual(2, minor); Assert.AreEqual(0, patch); }