Exemple #1
0
        public void ExampleTest()
        {
            var field = new List <char[]>(5)
            {
                ".S..".ToCharArray(),
                "###.".ToCharArray(),
                "T...".ToCharArray(),
                ".##.".ToCharArray(),
                "....".ToCharArray()
            };

            _lab = new Labyrinth(field);
            _lab.Bfs();
            var route = _lab.GetBestRoute();

            route.Length.Should().Be(7);
            new string(route).Should().BeEquivalentTo("RRDDLLL");
        }