public void GridContainsTest(string populateText, string searchFor, bool expectedContains) { var grid = new StringSearchGrid(populateText); bool result = grid.Contains(searchFor); result.Should().Be(expectedContains); }
public void ApplyStringToGridTest(string populateText, string applyString, int startRow, int startColumn, CellDirection direction, bool expectedApplied) { var grid = new StringSearchGrid(populateText); var gridCell = grid.GetCell(startRow, startColumn); bool applyResult = gridCell.Apply(applyString, direction); applyResult.Should().Be(expectedApplied); grid.Contains(applyString).Should().Be(expectedApplied); }