Example #1
0
        public void PathFinderFindThePath(int boardSize, int x, int y)
        {
            var board = new Board(boardSize, boardSize);
            var initialCoordintates = new Vector(x, y);
            var knight = new Knight(initialCoordintates, board);

            var pathFinder = new PathFinder(knight);

            var result = pathFinder.FindPath();
            Assert.That(result, Is.EqualTo(true));
            pathFinder.Print();
        }