AIO commit
Sorry for the late commit, forgot to commit and push it on Saturday 7th. Thank god there are moodle reminders
This commit is contained in:
parent
3083dbce7f
commit
2e6b418fef
24 changed files with 5790 additions and 1 deletions
22
AdventOfCode/AdventOfCode.Test/Day2Test.cs
Normal file
22
AdventOfCode/AdventOfCode.Test/Day2Test.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue