예제 #1
0
        public void count_garbage_correctly(string input, int expectedCount)
        {
            var solver = new Day9Solver();

            var actualCount = solver.CountUncancelledGarbage(input);

            Assert.AreEqual(expectedCount, actualCount);
        }
예제 #2
0
        public void solve_examples_correctly(string input, int expectedScore)
        {
            var solver = new Day9Solver();

            var answer = solver.ScoreGroups(input);

            Assert.AreEqual(expectedScore, answer);
        }