Ejemplo n.º 1
0
        public static void Part2(string[] input)
        {
            Helper.PrintChallengePart("Part 2");

            BaggageProcessor processor = new BaggageProcessor(input);
            int count = processor.CountInnerBags("shiny gold");

            Console.WriteLine("Count: " + count);
        }
Ejemplo n.º 2
0
        public void Day7Part2Bonus()
        {
            // Arrange
            string[] input = Helper.ParseInput(@"Inputs\\Day7_exampleBonus.txt");

            //Act
            BaggageProcessor processor = new BaggageProcessor(input);
            int count = processor.CountInnerBags("shiny gold");

            //Assert
            Assert.AreEqual(126, count);
        }