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

            Assert.False(result);
        }
예제 #2
0
        public void FindWithResultTest()
        {
            Board       board  = new Board();
            ReducerMock solver = new ReducerMock(board, new List <Cell> {
                new Cell(5, 6, new List <int> {
                    6
                })
            });
            bool result = solver.Run();

            Assert.True(result);
            Assert.Equal(new List <int> {
                6
            }, board.GetCell(5, 6).Candidates);
        }
예제 #3
0
 public void ConstructorTest()
 {
     Board       board  = new Board();
     ReducerMock solver = new ReducerMock(board, new List <Cell>());
 }