Day02 part 1
This commit is contained in:
@@ -57,6 +57,7 @@
|
||||
</Choose>
|
||||
<ItemGroup>
|
||||
<Compile Include="Day01_Tests.cs" />
|
||||
<Compile Include="Day02_Tests.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
||||
22
AdventOfCode2017.Tests/Day02_Tests.cs
Normal file
22
AdventOfCode2017.Tests/Day02_Tests.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace AdventOfCode2017.Tests
|
||||
{
|
||||
[TestClass()]
|
||||
public class Day02_Tests
|
||||
{
|
||||
[TestMethod()]
|
||||
public void ResolvePart1__Test()
|
||||
{
|
||||
Day02 day02 = new Day02();
|
||||
|
||||
string result = day02.ResolvePart1(new string[] {
|
||||
"5 1 9 5",
|
||||
"7 5 3",
|
||||
"2 4 6 8",
|
||||
});
|
||||
|
||||
Assert.AreEqual("18", result);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user