Day06 part1 statement and failing test

This commit is contained in:
2018-12-06 22:27:42 +01:00
parent 08217c79c7
commit bb757f891a
6 changed files with 162 additions and 1 deletions

View File

@@ -62,6 +62,7 @@
<Compile Include="Day03_Tests.cs" />
<Compile Include="Day04_Tests.cs" />
<Compile Include="Day05_Tests.cs" />
<Compile Include="Day06_Tests.cs" />
<Compile Include="GuardEvent_Tests.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>

View File

@@ -0,0 +1,25 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace AdventOfCode2018.Tests
{
[TestClass()]
public class Day06_Tests
{
[TestMethod()]
public void ResolvePart1__Test()
{
Day06 day06 = new Day06();
string result = day06.ResolvePart1(new string[] {
"1, 1",
"1, 6",
"8, 3",
"3, 4",
"5, 5",
"8, 9",
});
Assert.AreEqual("17", result);
}
}
}