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

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