Day06 part1 statement and failing test
This commit is contained in:
@@ -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>
|
||||
|
||||
25
AdventOfCode2018.Tests/Day06_Tests.cs
Normal file
25
AdventOfCode2018.Tests/Day06_Tests.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user