Refactor to use interface IDay

This commit is contained in:
2018-12-07 01:30:45 +01:00
parent 2760f9f9de
commit 4cffe19c3a
11 changed files with 56 additions and 86 deletions

View File

@@ -1,4 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace AdventOfCode2018.Tests
{
@@ -27,14 +28,15 @@ namespace AdventOfCode2018.Tests
{
Day06 day06 = new Day06();
string result = day06.ResolvePart2(new string[] {
List<ChronoPoint> points = day06.InputsToPoints(new string[] {
"1, 1",
"1, 6",
"8, 3",
"3, 4",
"5, 5",
"8, 9",
}, 32);
});
int result = day06.AreaInThresold(points, 32);
Assert.AreEqual("16", result);
}