예제 #1
0
        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);
        }
예제 #2
0
        public void ParseNegativeVersionNumberInSortableFormat()
        {
            var version = VersionNumber.Parse("_0099.0001.0000.0007");

            Assert.AreEqual(new VersionNumber(-99, 1, 0, 7), version);
        }
예제 #3
0
        public void ParseNegativeVersionNumber()
        {
            var version = VersionNumber.Parse("-99.1.0.7");

            Assert.AreEqual("_0099.0001.0000.0007", version.ToSortableString());
        }