public void Test_DayThree_PartOne() { var testFile = Path.Combine(TestHelper.TestDir, @"Day3.Input.txt"); var minDist = ManhattanHelper.GetMinManhattanDistance(testFile); Assert.IsTrue(minDist == 3229); }
public void Test_DayThree_PartTwo() { var testFile = Path.Combine(TestHelper.TestDir, @"Day3.Input.txt"); var minSteps = ManhattanHelper.GetMinStepsToIntersect(testFile); Assert.IsTrue(minSteps == 32132); }
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); } }