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); }
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); }
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); }
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_ODataOrderingNull_ReturnsFalse() { var queryPart = new ODataOrdering("Hello", ODataOrderingDirection.Asc); ODataOrdering other = null; var actual = queryPart.Equals(other); Assert.That(actual, Is.False); }
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); }