aoc/AOC.Test/Test2022.cs
Ben Harris 49b2c5c515
All checks were successful
continuous-integration/drone/push Build is passing
Use builtin Enumerable.Chunk() and fix test method naming
2022-12-03 19:36:09 -05:00

27 lines
719 B
C#

using AOC2022;
namespace AOC.Test;
[TestClass]
public class Test2022
{
[DataTestMethod]
[DataRow(typeof(Day01), "70509", "208567")]
[DataRow(typeof(Day02), "11449", "13187")]
[DataRow(typeof(Day03), "7917", "2585")]
public void CheckAllDays(Type dayType, string part1, string part2)
{
Common.CheckDay(dayType, part1, part2);
}
[DataTestMethod]
[DataRow(typeof(Day01), "24000", "45000")]
[DataRow(typeof(Day02), "15", "12")]
[DataRow(typeof(Day03), "157", "70")]
public void CheckTestInputs(Type dayType, string part1, string part2)
{
Day.UseTestInput = true;
Common.CheckDay(dayType, part1, part2);
Day.UseTestInput = false;
}
}