예제 #1
0
        public void ThenIShouldOnlyGetXColoredAppliances(string color)
        {
            var expected = ApplianceTableData
                           .Where(app => app.Color.Equals(color, StringComparison.OrdinalIgnoreCase));

            ApplianceResult.Should().BeEmptyOrSubsetOf(expected);
        }
예제 #2
0
        public void ThenTheRecordsShouldBeReverseSortedBy(string column)
        {
            var expected = ApplianceTableData.OrderByDescending(GetPropertyLambda(column));

            ApplianceResult.Should().Equal(expected);
        }
예제 #3
0
 public void ThenIShouldOnlyHaveNResults(int rows)
 {
     ApplianceResult.Should().HaveCount(rows, "because we asked for a subset of the data");
 }
예제 #4
0
 public void ThenIShouldGetNoResults()
 {
     ApplianceResult.Should().BeEmpty();
 }
예제 #5
0
 public void ThenTheyShouldBeASubsetOfAllData()
 {
     ApplianceResult.Should().BeEmptyOrSubsetOf(ApplianceTableData);
 }
예제 #6
0
 public void ThenIShouldGetAllItems()
 {
     ApplianceResult.Should().BeEquivalentTo(ApplianceTableData);
 }