public void Building_Small_Labyrinth_With_Default_Settings_Should_Work()
        {
            var smallBuilder = new SmallLabyrinthBuilder();
            var director = new LabyrinthDirector();

            director.Generate(smallBuilder);

            var smallLabyrinth = smallBuilder.Labyrinth;
        }
Exemple #2
0
        private Labyrinth DefaultSetup()
        {
            Console.WriteLine("Default Setup");

            var smallBuilder = new SmallLabyrinthBuilder();
            var director = new LabyrinthDirector();

            director.Generate(smallBuilder);

            return smallBuilder.Labyrinth;
        }
        public void Drawing_A_Small_Labyrinth_Should_Work()
        {
            var smallBuilder = new SmallLabyrinthBuilder();
            var director = new LabyrinthDirector();

            director.Generate(smallBuilder);

            var smallLabyrinth = smallBuilder.Labyrinth;

            var visualizator = ConsoleVisualization.Instance;

            visualizator.DrawLabyrinth(smallLabyrinth);
        }