コード例 #1
0
        public void MajorMinorPatchEqual()
        {
            var v1 = new ushort[] { 3, 4, 2 };
            var v2 = new ushort[] { 3, 4, 2 };

            Assert.Equal(v1, VersionComparer.Lower(v1, v2));
        }
コード例 #2
0
        public void MajorEqualMinorGreaterPatch()
        {
            var v1 = new ushort[] { 2, 4, 0 };
            var v2 = new ushort[] { 2, 2, 6 };

            Assert.Equal(v2, VersionComparer.Lower(v1, v2));
        }
コード例 #3
0
        public void MajorEqualMinorLess()
        {
            var v1 = new ushort[] { 1, 0 };
            var v2 = new ushort[] { 1, 1 };

            Assert.Equal(v1, VersionComparer.Lower(v1, v2));
        }
コード例 #4
0
        public void MajorLessMinorPatch()
        {
            var v1 = new ushort[] { 1, 1, 4 };
            var v2 = new ushort[] { 2, 0, 0 };

            Assert.Equal(v1, VersionComparer.Lower(v1, v2));
        }
コード例 #5
0
        public void MajorGreaterMinor()
        {
            var v1 = new ushort[] { 2, 0 };
            var v2 = new ushort[] { 1, 1 };

            Assert.Equal(v2, VersionComparer.Lower(v1, v2));
        }