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

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

            ApplianceResult.Should().Equal(expected);
        }
Example #3
0
        public void ThenIShouldOnlyGetApplianceWithMoreThanNAmps(int amps)
        {
            var expected = ApplianceTableData.Where(app => app.Amps > amps);

            expected.Should().BeEmptyOrSubsetOf(expected);
        }