コード例 #1
0
        static void Main(string[] args)
        {
            var navigationSystem = new NavigationSystem(File.ReadAllLines("../input.txt"));

            //Part One
            Console.WriteLine(navigationSystem.GetNavigationDistance());

            //Part One
            Console.WriteLine(navigationSystem.GetNavigationDistanceWithWaypoint());
        }
コード例 #2
0
        public void PartTwoTest()
        {
            var subject = new NavigationSystem(GetExampleInput());

            Assert.Equal(286, subject.GetNavigationDistanceWithWaypoint());
        }