This commit is contained in:
2020-12-08 06:29:34 +01:00
parent 906463d28a
commit 0a335ea6fb
3 changed files with 913 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace AdventOfCode2020.Tests
{
[TestClass()]
public class Day08_Tests
{
[TestMethod()]
public void ResolvePart1__Example()
{
var day = new Day08();
string result = day.ResolvePart1(new string[] {
"nop +0",
"acc +1",
"jmp +4",
"acc +3",
"jmp -3",
"acc -99",
"acc +1",
"jmp -4",
"acc +6",
});
Assert.AreEqual("5", result);
}
[TestMethod()]
public void ResolvePart2__Example()
{
var day = new Day08();
string result = day.ResolvePart2(new string[] {
"nop +0",
"acc +1",
"jmp +4",
"acc +3",
"jmp -3",
"acc -99",
"acc +1",
"jmp -4",
"acc +6",
});
Assert.AreEqual("8", result);
}
}
}