Exemplo n.º 1
0
        public void Day12_Example_Part1_OK()
        {
            var sut = new FerryNavigator();

            foreach (var leg in testData)
            {
                sut.Move(leg);
            }
            int actual = sut.AbsoluteDistanceTravelled();

            Assert.Equal(25, actual);
        }
Exemplo n.º 2
0
        public void Day12_RainRisk_Part1_OK()
        {
            var lines = DailyDataUtilities.ReadLinesFromFile("Day12Data.txt");

            Assert.Equal(786, lines.Length);
            var sut = new FerryNavigator();

            foreach (var leg in lines)
            {
                sut.Move(leg);
            }
            int actual = sut.AbsoluteDistanceTravelled();

            Assert.Equal(1838, actual);
        }