public void Equals_ObjectAnotherEquivalentODataOrdering_ReturnsTrue()
        {
            var queryPart = new ODataOrdering("Hello", ODataOrderingDirection.Asc);
            object other = new ODataOrdering("Hello", ODataOrderingDirection.Asc);

            var actual = queryPart.Equals(other);

            Assert.That(actual, Is.True);
        }
        public void Equals_ObjectNull_ReturnsFalse()
        {
            var queryPart = new ODataOrdering("Hello", ODataOrderingDirection.Asc);
            object other = null;

            var actual = queryPart.Equals(other);

            Assert.That(actual, Is.False);
        }
Beispiel #3
0
        public void Equals_AnotherODataOrderingDifferentDirection_ReturnsFalse()
        {
            var queryPart = new ODataOrdering("Hello", ODataOrderingDirection.Asc);
            var other     = new ODataOrdering("Hello", ODataOrderingDirection.Desc);

            var actual = queryPart.Equals(other);

            Assert.That(actual, Is.False);
        }
        public void Equals_AnotherODataOrderingDifferentFieldName_ReturnsFalse()
        {
            var queryPart = new ODataOrdering("Hello", ODataOrderingDirection.Asc);
            var other = new ODataOrdering("World", ODataOrderingDirection.Asc);

            var actual = queryPart.Equals(other);

            Assert.That(actual, Is.False);
        }
Beispiel #5
0
        public void Equals_Self_ReturnsTrue()
        {
            var queryPart = new ODataOrdering("Hello", ODataOrderingDirection.Asc);
            var other     = queryPart;

            var actual = queryPart.Equals(other);

            Assert.That(actual, Is.True);
        }
Beispiel #6
0
        public void Equals_ObjectOfDifferentType_ReturnsFalse()
        {
            var    queryPart = new ODataOrdering("Hello", ODataOrderingDirection.Asc);
            object other     = String.Empty;

            var actual = queryPart.Equals(other);

            Assert.That(actual, Is.False);
        }
Beispiel #7
0
        public void Equals_ODataOrderingNull_ReturnsFalse()
        {
            var           queryPart = new ODataOrdering("Hello", ODataOrderingDirection.Asc);
            ODataOrdering other     = null;

            var actual = queryPart.Equals(other);

            Assert.That(actual, Is.False);
        }
Beispiel #8
0
        public void Equals_ObjectAnotherEquivalentODataOrdering_ReturnsTrue()
        {
            var    queryPart = new ODataOrdering("Hello", ODataOrderingDirection.Asc);
            object other     = new ODataOrdering("Hello", ODataOrderingDirection.Asc);

            var actual = queryPart.Equals(other);

            Assert.That(actual, Is.True);
        }
        public void Equals_ObjectOfDifferentType_ReturnsFalse()
        {
            var queryPart = new ODataOrdering("Hello", ODataOrderingDirection.Asc);
            object other = String.Empty;

            var actual = queryPart.Equals(other);

            Assert.That(actual, Is.False);
        }
        public void Equals_Self_ReturnsTrue()
        {
            var queryPart = new ODataOrdering("Hello", ODataOrderingDirection.Asc);
            var other = queryPart;

            var actual = queryPart.Equals(other);

            Assert.That(actual, Is.True);
        }