ben
/
aoc
1
0
Fork 0
aoc/AOC.Test/Test2015.cs

37 lines
1.2 KiB
C#
Raw Normal View History

using AOC2015;
namespace AOC.Test;
[TestClass]
public class Test2015
{
[DataTestMethod]
[DataRow(typeof(Day01), "232", "1783")]
[DataRow(typeof(Day02),"1586300", "3737498")]
2022-11-11 21:17:17 +00:00
[DataRow(typeof(Day03), "2081", "2341")]
2022-11-11 21:31:34 +00:00
// [DataRow(typeof(Day04), "346386", "9958218")]
2022-11-11 22:02:28 +00:00
[DataRow(typeof(Day05), "258", "53")]
2022-11-12 21:33:11 +00:00
// [DataRow(typeof(Day06), "543903", "14687245")]
2022-11-13 17:56:18 +00:00
[DataRow(typeof(Day07), "3176", "14710")]
2022-11-13 19:12:09 +00:00
[DataRow(typeof(Day08), "1342", "2074")]
public void TestAllDays(Type dayType, string part1, string part2)
{
Common.CheckDay(dayType, part1, part2);
}
[DataTestMethod]
2022-11-11 21:17:34 +00:00
[DataRow(typeof(Day01), "-1", "5")]
[DataRow(typeof(Day02), "58", "34")]
2022-11-11 21:17:17 +00:00
[DataRow(typeof(Day03), "2", "11")]
2022-11-11 21:31:34 +00:00
// [DataRow(typeof(Day04), "609043", "6742839")]
2022-11-11 22:02:28 +00:00
[DataRow(typeof(Day05), "1", "1")]
2022-11-12 21:33:11 +00:00
[DataRow(typeof(Day06), "1000000", "1000000")]
2022-11-13 19:12:09 +00:00
// [DataRow(typeof(Day07), "", "")] // test input doesn't have "a" wire
[DataRow(typeof(Day08), "12", "19")]
public void CheckTestInputs(Type dayType, string part1, string part2)
{
Day.UseTestInput = true;
Common.CheckDay(dayType, part1, part2);
Day.UseTestInput = false;
}
}