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 ThenTheTo_DoItemsListShouldNotContain(string item) { Context.Actor().Then(TheItems.Displayed(), items => items.Should().NotContain(i => i.Name == item)); }
public void ThenTheTo_DoItemsListShouldContain(string item) { Context.Actor().AsksFor(TheItems.Displayed()).Should().Contain(i => i.Name == item); }