public void When_OrderingDoesNotContainOrderBy_Expect_False() { // Arrange Ordering <TestClass> ordering = new Ordering <TestClass>(); OrderBy orderby = new OrderBy(nameof(TestClass.Property1)); // Act bool result = ordering.Contains(orderby); // Assert Assert.False(result); }
public void When_OrderingContainsOrderBy_Expect_True() { // Arrange Ordering <TestClass> ordering = new Ordering <TestClass>(); OrderBy orderby = new OrderBy(nameof(TestClass.Property1)); ordering.Add(orderby); // Act bool result = ordering.Contains(orderby); // Assert Assert.True(result); }