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

            Assert.False(result);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
 public void ConstructorTest()
 {
     Board      board  = new Board();
     SolverMock solver = new SolverMock(board, new List <Cell>());
 }