public void TestPart1Solution(string inputFile, int expected) { // Arrange long[] input = Helpers.ReadIntCodeInput($"../../../{inputFile}"); // Act var result = Day5Solver.Part1Solution(input); // Assert Assert.Equal(expected, result); }
public void ItSolvesPart2() { Assert.Equal(4, Day5Solver.SolvePart2For("dabAcCaCBAcCcaDA")); }
public void ItReducesOneTime() { Assert.Equal("", Day5Solver.React("aA")); }
public void ItReducesTheExample() { Assert.Equal("dabCBAcaDA", Day5Solver.React("dabAcCaCBAcCcaDA")); }
public void ItReducesAllInOnePass() { Assert.Equal("cd", Day5Solver.React("aABbcdEe")); }
public void ItReducesToTheRight() { Assert.Equal("a", Day5Solver.React("abB")); }
public void SetUp() { _solver = new Day5Solver(); _input = new Day5Input(); }
public void SetUp() { _solver = new Day5Solver(); _parser = new Day5Parser(); }