public void returns_1867_acc_value_when_infite_loop_is_found() { var input = File.ReadAllText("Files\\Day08.txt"); var solver = new Day08Task1(); var result = solver.Solve(input.Split(Environment.NewLine)); result.Should().Be(1867); }
public void returns_5_acc_value_when_infite_loop_is_found() { var input = @"nop +0 acc +1 jmp +4 acc +3 jmp -3 acc -99 acc +1 jmp -4 acc +6"; var solver = new Day08Task1(); var result = solver.Solve(input.Split(Environment.NewLine)); result.Should().Be(5); }