Exemple #1
0
        public void FindWithoutResultTest()
        {
            Board      board  = new Board();
            SolverMock solver = new SolverMock(board, new List <Cell>());
            bool       result = solver.Run();

            Assert.False(result);
        }
Exemple #2
0
        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);
        }