Beispiel #1
0
        public void Puzzle2_FollowInstructionsWithWaypoint_AndFindManhattanDistance()
        {
            var ferry = new Ferry(Input.Day12);

            ferry.FollowInstructionsWithWaypoint();

            ferry.ManhattanDistance.Should().Be(35292);
        }
Beispiel #2
0
        public void FerryAndWaypoint_FollowInstructions_WithExample_EndsUpInCorrectPlace()
        {
            var ferry = new Ferry(Example);

            ferry.FollowInstructionsWithWaypoint();

            (ferry.X, ferry.Y).Should().Be((214, -72));
            ferry.ManhattanDistance.Should().Be(286);
        }