Esempio n. 1
0
            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);
            }
Esempio n. 2
0
            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);
            }