public void SimulateTest()
        {
            var program = File.ReadAllText("Input.txt");

            var explorer = new MapExplorer(program);

            explorer.Explore();

            var time = OxygenFillSimulator.Simulate(explorer.Map);

            Assert.Equal(400, time);
        }
Exemple #2
0
        public void ExploreTest()
        {
            var program = File.ReadAllText("Input.txt");

            var explorer = new MapExplorer(program);

            var pathLength = explorer.Explore();

            explorer.Map.Visualize(_output, visualMap, '?');

            Assert.Equal((-12, 16), explorer.OxygenSystemPosition);
            Assert.Equal(280, pathLength);
        }