Refactor Day06 part 2, usage of magic number

This commit is contained in:
2018-12-07 07:30:42 +01:00
parent 6b449a1c86
commit ef84354e66
2 changed files with 8 additions and 7 deletions

View File

@@ -26,9 +26,9 @@ namespace AdventOfCode2018.Tests
[TestMethod()]
public void ResolvePart2__Test()
{
Day06 day06 = new Day06();
Day06 day06 = new Day06 { DistanceThresold = 32, };
List<ChronoPoint> points = day06.InputsToPoints(new string[] {
string result = day06.ResolvePart2(new string[] {
"1, 1",
"1, 6",
"8, 3",
@@ -36,9 +36,8 @@ namespace AdventOfCode2018.Tests
"5, 5",
"8, 9",
});
int result = day06.AreaInThresold(points, 32);
Assert.AreEqual(16, result);
Assert.AreEqual("16", result);
}
}
}