Ejemplo n.º 1
0
        public void TestNavigateByWaypointFromFile()
        {
            Ferry ferry = new Ferry();

            ferry.NavigateByWaypointFromFile("input/day12.txt");
            Assert.Equal(286, ferry.DistanceFromStart());
        }
Ejemplo n.º 2
0
        public override Day Run()
        {
            dayOfMonth = 12;
            stopwatch.Start();
            Ferry ferry = new Ferry();

            ferry.NavigateFromFile("input/day12.txt");
            answer_part1 = ferry.DistanceFromStart().ToString();
            ferry        = new Ferry();
            ferry.NavigateByWaypointFromFile("input/day12.txt");
            answer_part2 = ferry.DistanceFromStart().ToString();
            return(this);
        }