public void ParseTest() { var version = VersionNumber.Parse("1.3.2.4"); Assert.AreEqual(1, version.Major); Assert.AreEqual(3, version.Minor); Assert.AreEqual(2, version.Revision); Assert.AreEqual(4, version.Build); }
public void ParseNegativeVersionNumberInSortableFormat() { var version = VersionNumber.Parse("_0099.0001.0000.0007"); Assert.AreEqual(new VersionNumber(-99, 1, 0, 7), version); }
public void ParseNegativeVersionNumber() { var version = VersionNumber.Parse("-99.1.0.7"); Assert.AreEqual("_0099.0001.0000.0007", version.ToSortableString()); }