Day 23 part 2

This commit is contained in:
2018-12-23 15:53:19 +01:00
parent fe7c9c828c
commit d30b568cc6
2 changed files with 127 additions and 7 deletions

View File

@@ -1,4 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using AdventOfCode2018;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace AdventOfCode2018.Tests
{
@@ -24,5 +25,22 @@ namespace AdventOfCode2018.Tests
Assert.AreEqual("7", result);
}
[TestMethod()]
public void ResolvePart2__Test()
{
Day23 day = new Day23();
string result = day.ResolvePart2(new string[] {
"pos=<10,12,12>, r=2",
"pos=<12,14,12>, r=2",
"pos=<16,12,12>, r=4",
"pos=<14,14,14>, r=6",
"pos=<50,50,50>, r=200",
"pos=<10,10,10>, r=5",
});
Assert.AreEqual("36", result);
}
}
}