Beispiel #1
0
 public void ThenTheTo_DoItemsListShouldContainTimes(string item, int times)
 {
     Context.Actor().AsksFor(TheItems.Displayed())
     .Where(i => i.Name == item)
     .Should()
     .HaveCount(times, "Expected to have {0} items in collection", times);
 }
 public void ThenIShouldHaveItemsRemaining(int expectedCount)
 {
     Context.Actor().Then(TheItems.Remaining(), items => items.Should().Be(expectedCount));
 }
 public void ThenIShouldHaveItemsRemaining(int expectedCount)
 {
     Context.Actor().AsksFor(TheItems.Remaining()).Should().Be(expectedCount);
 }
Beispiel #4
0
 public void ThenTheTo_DoItemsListShouldNotContain(string item)
 {
     Context.Actor().Then(TheItems.Displayed(), items => items.Should().NotContain(i => i.Name == item));
 }
Beispiel #5
0
 public void ThenTheTo_DoItemsListShouldContain(string item)
 {
     Context.Actor().AsksFor(TheItems.Displayed()).Should().Contain(i => i.Name == item);
 }