Exemplo n.º 1
0
        public void Test_DayThree_PartOne()
        {
            var testFile = Path.Combine(TestHelper.TestDir, @"Day3.Input.txt");

            var minDist = ManhattanHelper.GetMinManhattanDistance(testFile);

            Assert.IsTrue(minDist == 3229);
        }
Exemplo n.º 2
0
        public void Test_DayThree_PartTwo()
        {
            var testFile = Path.Combine(TestHelper.TestDir, @"Day3.Input.txt");

            var minSteps = ManhattanHelper.GetMinStepsToIntersect(testFile);

            Assert.IsTrue(minSteps == 32132);
        }
Exemplo n.º 3
0
 public void Test_KnownSteps()
 {
     //< Want to test that we get the correct distance for the above two example sets
     foreach (var testTup in TestTups)
     {
         var minDist = ManhattanHelper.GetMinStepsToIntersect(testTup.Item1);
         Assert.IsTrue(minDist == testTup.Item3);
     }
 }