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
28
AdventOfCode/AdventOfCode.Test/Day6Test.cs
Normal file
28
AdventOfCode/AdventOfCode.Test/Day6Test.cs
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
namespace AdventOfCode.Test;
|
||||
|
||||
public sealed class Day6Test
|
||||
{
|
||||
private const string Input = "....#.....\r\n.........#\r\n..........\r\n..#.......\r\n.......#..\r\n..........\r\n.#..^.....\r\n........#.\r\n#.........\r\n......#...";
|
||||
|
||||
[Fact]
|
||||
public void Part1()
|
||||
{
|
||||
const int Expected = 41;
|
||||
var day = new Day6();
|
||||
|
||||
var result = day.Part1(Input);
|
||||
|
||||
Assert.Equal(Expected, result);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Part2()
|
||||
{
|
||||
const int Expected = 6;
|
||||
var day = new Day6();
|
||||
|
||||
var result = day.Part2(Input);
|
||||
|
||||
Assert.Equal(Expected, result);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue