Esempio n. 1
0
        public void PartTwo()
        {
            string type  = "shiny gold";
            var    input = Helpers.FileHelper.ParseFile(InputFile);

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

            Assert.IsTrue(count == 30899);
        }
Esempio n. 2
0
        public void Test_KnownContents_Two()
        {
            string testType = "shiny gold";
            var    input    = Helpers.FileHelper.ParseFile(TestHelper.GetTestFile(this, "Test2"));

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

            Assert.IsTrue(count == 126);
        }