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

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

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

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