public void FindPath_GetMapPathCharacters_ReturnUpdatedPathCharacters()
        {
            IAsciiMap map = new AsciiMap();
            string    expectedPathCharacters = "@---+B||E--+|E|+--F--+|C|||A--|-----K|||+--E--Ex";

            using (var mapResource = TestResource.GetResourceMap(MapSelector.Map3))
            {
                map.MapMatrix = MapLoader.GetMapMatrixFromResource(mapResource);
            }
            Pathfinder.FindPath(map, map.StartField, PathDirection.Unknown);

            Assert.Equal(expectedPathCharacters, string.Join("", map.PathCharacters.ToArray()));
        }
        public void FindPath_GetMapPathLetters_ReturnUpdatedPathLetters()
        {
            IAsciiMap map = new AsciiMap();
            string    expectedPathLetters = "SAUNA";

            using (var mapResource = TestResource.GetResourceMap(MapSelector.Map4))
            {
                map.MapMatrix = MapLoader.GetMapMatrixFromResource(mapResource);
            }
            Pathfinder.FindPath(map, map.StartField, PathDirection.Unknown);

            Assert.Equal(expectedPathLetters, string.Join("", map.PathLetters.ToArray()));
        }
        public void GetMapMatrixFromResource_AciiMapFromResource_ReturnsMap(
            MapSelector mapsSelector,
            int expectedMapMatrixFieldCount)
        {
            IDictionary <IAsciiMapCoordinate, IAsciiField> map;

            using (var mapResource = TestResource.GetResourceMap(mapsSelector))
            {
                map = MapLoader.GetMapMatrixFromResource(mapResource);
            }

            Assert.Equal(map.Count, expectedMapMatrixFieldCount);
        }