public void Where_ShouldReturnResultOfWhere() { //Arrange ICell[] cells = { Cell0 }; CellCollection subject = new CellCollection(cells); //Act IEnumerable <ICell> actual = subject.Where(cell => false); //Assert actual.Count().Should().Be(0); }
public void Where_ShouldReturnResultOfWhereIndex() { //Arrange ICell[] cells = { Cell0 }; CellCollection subject = new CellCollection(cells); //Act IEnumerable <ICell> actual = subject.Where((cell, index) => true); //Assert actual.Should().BeEquivalentTo(cells); }