/* * [TestCase("2210736", new string[] { * "171 ORE => 8 CNZTR", * "7 ZLQW, 3 BMBT, 9 XCVML, 26 XMNCP, 1 WPTQ, 2 MZWV, 1 RJRHP => 4 PLWSL", * "114 ORE => 4 BHXH", * "14 VRPVC => 6 BMBT", * "6 BHXH, 18 KTJDG, 12 WPTQ, 7 PLWSL, 31 FHTLT, 37 ZDVW => 1 FUEL", * "6 WPTQ, 2 BMBT, 8 ZLQW, 18 KTJDG, 1 XMNCP, 6 MZWV, 1 RJRHP => 6 FHTLT", * "15 XDBXC, 2 LTCX, 1 VRPVC => 6 ZLQW", * "13 WPTQ, 10 LTCX, 3 RJRHP, 14 XMNCP, 2 MZWV, 1 ZLQW => 1 ZDVW", * "5 BMBT => 4 WPTQ", * "189 ORE => 9 KTJDG", * "1 MZWV, 17 XDBXC, 3 XCVML => 2 XMNCP", * "12 VRPVC, 27 CNZTR => 2 XDBXC", * "15 KTJDG, 12 BHXH => 5 XCVML", * "6 BHXH, 2 VRPVC => 7 MZWV", * "121 ORE => 7 VRPVC", * "7 XCVML => 6 RJRHP", * "5 BHXH, 4 VRPVC => 5 LTCX" * })] */ public void TestPartOne(string expected, string[] input) { Solver s = new Day14Solver(); string result = s.SolvePartOne(input); Assert.That(result, Is.EqualTo(expected)); }
public void TestPart1Solution(string inputFile, long expected) { // Arrange string[] lines = System.IO.File.ReadAllLines($"../../../{inputFile}"); // Act var result = Day14Solver.Part1Solution(lines); // Assert Assert.Equal(expected, result); }
public void SetUp() { _solver = new Day14Solver(); _parser = new Day14Parser(); }
public void SetUp() { _solver = new Day14Solver(); _input = new Day14Input(); }
public void ReturnsRecipesBeforeInput(string input, string expectedCount) { var solver = new Day14Solver(input); Assert.Equal(expectedCount, solver.SolveSecondPart()); }
public void ReturnsTenRecipesAfterCount(int count, string expectedNextRecipes) { var solver = new Day14Solver(count.ToString()); Assert.Equal(expectedNextRecipes, solver.SolveFirstPart()); }