public void TestNavigateFromFile() { Ferry ferry = new Ferry(); ferry.NavigateFromFile("input/day12.txt"); Assert.Equal(25, ferry.DistanceFromStart()); }
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); }