my advent of code solutions
1using Solutions._2016;
2// ReSharper disable MemberCanBeMadeStatic.Global
3
4namespace Tests;
5
6public class Test2016
7{
8 [Test]
9 [Arguments(typeof(Day01NoTimeForATaxicab), "300", "159")]
10 [Arguments(typeof(Day02BathroomSecurity), "76792", "A7AC3")]
11 [Arguments(typeof(Day03SquaresWithThreeSides), "993", "1849")]
12 [Arguments(typeof(Day04SecurityThroughObscurity), "361724", "482")]
13 // [Arguments(typeof(Day05HowAboutANiceGameOfChess), "F77A0E6E", "999828EC")] // TODO: optimize
14 [Arguments(typeof(Day06SignalsAndNoise), "gyvwpxaz", "jucfoary")]
15 [Arguments(typeof(Day07InternetProtocolVersion7), "105", "258")]
16 [Arguments(typeof(Day08TwoFactorAuthentication), "121",
17 """
18
19 ███▒▒█▒▒█▒███▒▒█▒▒█▒▒██▒▒████▒▒██▒▒████▒▒███▒█▒▒▒▒
20 █▒▒█▒█▒▒█▒█▒▒█▒█▒▒█▒█▒▒█▒█▒▒▒▒█▒▒█▒█▒▒▒▒▒▒█▒▒█▒▒▒▒
21 █▒▒█▒█▒▒█▒█▒▒█▒█▒▒█▒█▒▒▒▒███▒▒█▒▒█▒███▒▒▒▒█▒▒█▒▒▒▒
22 ███▒▒█▒▒█▒███▒▒█▒▒█▒█▒▒▒▒█▒▒▒▒█▒▒█▒█▒▒▒▒▒▒█▒▒█▒▒▒▒
23 █▒█▒▒█▒▒█▒█▒█▒▒█▒▒█▒█▒▒█▒█▒▒▒▒█▒▒█▒█▒▒▒▒▒▒█▒▒█▒▒▒▒
24 █▒▒█▒▒██▒▒█▒▒█▒▒██▒▒▒██▒▒████▒▒██▒▒████▒▒███▒████▒
25
26 """)]
27 public async Task CheckAllDays(Type dayType, string part1, string part2) =>
28 await Common.CheckDay(dayType, part1, part2);
29
30 [Test]
31 [Arguments(typeof(Day02BathroomSecurity), "1985", "5DB3")]
32 //[Arguments(typeof(Day05HowAboutANiceGameOfChess), "18F47A30", "05ACE8E3")]
33 [Arguments(typeof(Day06SignalsAndNoise), "easter", "advent")]
34 public async Task CheckTestInputs(Type dayType, string part1, string part2) =>
35 await Common.CheckDay(dayType, part1, part2, true);
36}