public void FindWithoutResultTest() { Board board = new Board(); SolverMock solver = new SolverMock(board, new List <Cell>()); bool result = solver.Run(); Assert.False(result); }
public void FindWithResultTest() { Board board = new Board(); SolverMock solver = new SolverMock(board, new List <Cell> { new Cell(5, 6) { Number = 6 } }); bool result = solver.Run(); Assert.True(result); Assert.Equal(6, board.GetCell(5, 6).Number); }