Sorry for the late commit, forgot to commit and push it on Saturday 7th. Thank god there are moodle reminders
28 lines
662 B
C#
28 lines
662 B
C#
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);
|
|
}
|
|
}
|