Esempio n. 1
0
        public void Puzzle1_FollowInstructions_AndFindManhattanDistance()
        {
            var ferry = new Ferry(Input.Day12);

            ferry.FollowInstructions();

            ferry.ManhattanDistance.Should().Be(1645);
        }
Esempio n. 2
0
        public void Ferry_FollowInstructions_WithExample_EndsUpInCorrectPlace()
        {
            var ferry = new Ferry(Example);

            ferry.FollowInstructions();

            (ferry.X, ferry.Y).Should().Be((17, -8));
            ferry.ManhattanDistance.Should().Be(25);
        }