39 lines
1.9 KiB
C#
39 lines
1.9 KiB
C#
using AOC2016;
|
|
|
|
namespace AOC.Test;
|
|
|
|
[TestClass]
|
|
public class Test2016
|
|
{
|
|
private const string Day08Actual =
|
|
"""
|
|
|
|
███▒▒█▒▒█▒███▒▒█▒▒█▒▒██▒▒████▒▒██▒▒████▒▒███▒█▒▒▒▒
|
|
█▒▒█▒█▒▒█▒█▒▒█▒█▒▒█▒█▒▒█▒█▒▒▒▒█▒▒█▒█▒▒▒▒▒▒█▒▒█▒▒▒▒
|
|
█▒▒█▒█▒▒█▒█▒▒█▒█▒▒█▒█▒▒▒▒███▒▒█▒▒█▒███▒▒▒▒█▒▒█▒▒▒▒
|
|
███▒▒█▒▒█▒███▒▒█▒▒█▒█▒▒▒▒█▒▒▒▒█▒▒█▒█▒▒▒▒▒▒█▒▒█▒▒▒▒
|
|
█▒█▒▒█▒▒█▒█▒█▒▒█▒▒█▒█▒▒█▒█▒▒▒▒█▒▒█▒█▒▒▒▒▒▒█▒▒█▒▒▒▒
|
|
█▒▒█▒▒██▒▒█▒▒█▒▒██▒▒▒██▒▒████▒▒██▒▒████▒▒███▒████▒
|
|
|
|
""";
|
|
|
|
[DataTestMethod]
|
|
[DataRow(typeof(Day01), "300", "159")]
|
|
[DataRow(typeof(Day02), "76792", "A7AC3")]
|
|
[DataRow(typeof(Day03), "993", "1849")]
|
|
[DataRow(typeof(Day04), "361724", "482")]
|
|
//[DataRow(typeof(Day05), "F77A0E6E", "999828EC")] // TODO: optimize
|
|
[DataRow(typeof(Day06), "gyvwpxaz", "jucfoary")]
|
|
[DataRow(typeof(Day07), "105", "258")]
|
|
[DataRow(typeof(Day08), "121", Day08Actual)]
|
|
public void CheckAllDays(Type dayType, string part1, string part2) =>
|
|
Common.CheckDay(dayType, part1, part2);
|
|
|
|
[DataTestMethod]
|
|
[DataRow(typeof(Day02), "1985", "5DB3")]
|
|
//[DataRow(typeof(Day05), "18F47A30", "05ACE8E3")]
|
|
[DataRow(typeof(Day06), "easter", "advent")]
|
|
public void CheckTestInputs(Type dayType, string part1, string part2) =>
|
|
Common.CheckDay(dayType, part1, part2, true);
|
|
}
|