Exemple #1
0
        public void Part1()
        {
            var day    = new Day7(TestDataPart1);
            var result = day.FindCountOfParentsContainingGoldBag();

            Assert.Equal(4, result);
        }
Exemple #2
0
        public async Task Part1DataAsync()
        {
            var data = await FileHelper.GetInputAsText(Day);

            var day    = new Day7(data);
            var result = day.FindCountOfParentsContainingGoldBag();

            Output.WriteLine(result.ToString());
        }