Ejemplo n.º 1
0
        public void not_equal_operand_true()
        {
            var first = new XbmcVersion(5, 0, 0);
            var second = new XbmcVersion(6, 0, 0);

            (first != second).Should().BeTrue();
        }
Ejemplo n.º 2
0
        public void Icomparer_greater_test(int major, int minor, int patch)
        {
            var first = new XbmcVersion(5, 0, 0);
            var second = new XbmcVersion(major, minor, patch);

            second.Should().BeGreaterThan(first);
        }
Ejemplo n.º 3
0
        public void equal_operand_false()
        {
            var first = new XbmcVersion(5, 0, 0);
            var second = new XbmcVersion(6, 0, 0);

            (first == second).Should().BeFalse();
        }
Ejemplo n.º 4
0
        public void Icomparer_lesser_test(int major, int minor, int patch)
        {
            var first = new XbmcVersion(5, 5, 5);
            var second = new XbmcVersion(major, minor, patch);

            second.Should().BeLessThan(first);
        }
Ejemplo n.º 5
0
        public void not_equal_operand_true()
        {
            var first  = new XbmcVersion(5, 0, 0);
            var second = new XbmcVersion(6, 0, 0);

            (first != second).Should().BeTrue();
        }
Ejemplo n.º 6
0
        public void equal_operand_false()
        {
            var first  = new XbmcVersion(5, 0, 0);
            var second = new XbmcVersion(6, 0, 0);

            (first == second).Should().BeFalse();
        }
Ejemplo n.º 7
0
        public void Icomparer_lesser_test(int major, int minor, int patch)
        {
            var first  = new XbmcVersion(5, 5, 5);
            var second = new XbmcVersion(major, minor, patch);

            second.Should().BeLessThan(first);
        }
Ejemplo n.º 8
0
        public void Icomparer_greater_test(int major, int minor, int patch)
        {
            var first  = new XbmcVersion(5, 0, 0);
            var second = new XbmcVersion(major, minor, patch);

            second.Should().BeGreaterThan(first);
        }
Ejemplo n.º 9
0
        public void lesser_operand()
        {
            var first = new XbmcVersion(5, 0, 0);
            var second = new XbmcVersion(6, 0, 0);

            (second > first).Should().BeTrue();
            (second >= first).Should().BeTrue();
        }
Ejemplo n.º 10
0
        public void greater_operand()
        {
            var first = new XbmcVersion(5, 0, 0);
            var second = new XbmcVersion(6, 0, 0);

            (first < second).Should().BeTrue();
            (first <= second).Should().BeTrue();
        }
Ejemplo n.º 11
0
        public void lesser_operand()
        {
            var first  = new XbmcVersion(5, 0, 0);
            var second = new XbmcVersion(6, 0, 0);

            (second > first).Should().BeTrue();
            (second >= first).Should().BeTrue();
        }
Ejemplo n.º 12
0
        public void greater_operand()
        {
            var first  = new XbmcVersion(5, 0, 0);
            var second = new XbmcVersion(6, 0, 0);

            (first < second).Should().BeTrue();
            (first <= second).Should().BeTrue();
        }
Ejemplo n.º 13
0
        public void equal_operand()
        {
            var first = new XbmcVersion(5, 0, 0);
            var second = new XbmcVersion(5, 0, 0);

            (first == second).Should().BeTrue();
            (first >= second).Should().BeTrue();
            (first <= second).Should().BeTrue();
        }
Ejemplo n.º 14
0
        public void equal_operand()
        {
            var first  = new XbmcVersion(5, 0, 0);
            var second = new XbmcVersion(5, 0, 0);

            (first == second).Should().BeTrue();
            (first >= second).Should().BeTrue();
            (first <= second).Should().BeTrue();
        }
Ejemplo n.º 15
0
 public bool CanHandle(XbmcVersion version)
 {
     return version < new XbmcVersion(5);
 }
Ejemplo n.º 16
0
 public bool CanHandle(XbmcVersion version)
 {
     return(version >= new XbmcVersion(5));
 }