public void Guaranteed_cells_are_calculated_correctly(string expectedAnswer, int length, params int[] hints) { var solver = new GuaranteedCellSolver(); var cellCollection = new CellCollection(0, hints, CreateCellCollection(length)); solver.Solve(cellCollection); Assert.That(cellCollection.ToString(), Is.EqualTo(expectedAnswer)); }
public void Cell_collection_with_no_guaranteed_cells_is_left_alone(int length, params int[] hints) { var solver = new GuaranteedCellSolver(); var cellCollection = new CellCollection(0, hints, CreateCellCollection(length)); solver.Solve(cellCollection); foreach (var cell in cellCollection.Cells) { Assert.That(cell.State, Is.EqualTo(CellState.None)); } }