Sorry for the late commit, forgot to commit and push it on Saturday 7th. Thank god there are moodle reminders
22 lines
476 B
C#
22 lines
476 B
C#
namespace AdventOfCode.Test;
|
|
|
|
public sealed class Day2Test
|
|
{
|
|
private string _input = "7 6 4 2 1\n1 2 7 8 9\n9 7 6 2 1\n1 3 2 4 5\n8 6 4 4 1\n1 3 6 7 9";
|
|
|
|
[Fact]
|
|
public void Part1()
|
|
{
|
|
var day2 = new Day2();
|
|
var result = day2.Part1(_input);
|
|
Assert.Equal(2, result);
|
|
}
|
|
|
|
[Fact]
|
|
public void Part2()
|
|
{
|
|
var day2 = new Day2();
|
|
var result = day2.Part2(_input);
|
|
Assert.Equal(4, result);
|
|
}
|
|
}
|