public void UpdateTo_ShouldNotReplaceIfNotFound() { //Arrange ICell[] cells = { Cell0 }; CellCollection subject = new CellCollection(cells); //Act subject.UpdateTo(CellX, Cell1); //Assert cells[0].Should().Be(Cell0); }
public void UpdateTo_ShouldUpdateCell() { //Arrange ICell[] cells = { Cell0 }; CellCollection subject = new CellCollection(cells); //Act subject.UpdateTo(Cell0, Cell1); //Assert cells[0].Value().Should().Be(Cell1.Value()); }