Пример #1
0
        public void Test_Part2()
        {
            var input = @"nop +0
acc +1
jmp +4
acc +3
jmp -3
acc -99
acc +1
jmp -4
acc +6";
            var d8    = new Day08();

            d8.DebugInput = input;
            var result = d8.SolvePt2();

            Assert.AreEqual(8, result);
        }
Пример #2
0
 public void Puzzle2Test()
 {
     Assert.AreEqual(16653, Day08.Puzzle2(inputDay08));
 }
Пример #3
0
 public void Puzzle1Test()
 {
     Assert.AreEqual(41555, Day08.Puzzle1(inputDay08));
 }
Пример #4
0
 public void Puzzle2ExampleTest()
 {
     Assert.AreEqual(66, Day08.Puzzle2(inputDay08Example1));
 }
Пример #5
0
 public void Puzzle1ExampleTest()
 {
     Assert.AreEqual(138, Day08.Puzzle1(inputDay08Example1));
 }