Exemple #1
0
        public void ConvertToInt()
        {
            {
                const int expected = 10;
                var ver1 = new Version(1, 0);
                Assert.AreEqual(expected, ver1.ToInt32());
            }

            {
                const int expected = 43;
                var ver2 = new Version(4, 3, 234, 4);
                Assert.AreEqual(expected, ver2.ToInt32());
            }
        }