Beispiel #1
0
        public void PartOne()
        {
            string type  = "shiny gold";
            var    input = Helpers.FileHelper.ParseFile(InputFile);

            var handler = new BaggageHandler(input);
            int count   = handler.CountBagsThatCanContain(type);

            Assert.IsTrue(count == 161);
        }
Beispiel #2
0
        public void Test_KnownRules()
        {
            string testType = "shiny gold";
            var    input    = Helpers.FileHelper.ParseFile(TestFile);

            var handler = new BaggageHandler(input);
            int count   = handler.CountBagsThatCanContain(testType);

            Assert.IsTrue(count == 4);
        }