Пример #1
0
        public void CheckIfTopLeftColPositionIsCorrect()
        {
            BacktrackerMazeGenerator generator = new BacktrackerMazeGenerator();
            Maze maze = new Maze(generator, 20, 20);

            Assert.AreEqual(20, maze.TopLeftPosition.Row);
        }
        public void GenerateReturnsBacktrackerCellArray()
        {
            BacktrackerMazeGenerator generator = new BacktrackerMazeGenerator();
            var array = generator.Generate(10, 10);

            Assert.IsInstanceOfType(array, typeof(Array));
        }