public void Part2() { var expected = 32; var Bags = AdventOfCodeDay7.CreateBagTree(Sample.Split(new[] { Environment.NewLine }, StringSplitOptions.None)); var actual = AdventOfCodeDay7.HowManyBagsDoYouNeedToCarryYourBag(Bags, "shiny gold"); Assert.Equal(expected, actual); }
public void Part1() { var expected = 4; var Bags = AdventOfCodeDay7.CreateBagTree(Sample.Split(new[] { Environment.NewLine }, StringSplitOptions.None)); AdventOfCodeDay7.HowManyBagsCanCarryYourBag(Bags, "shiny gold"); var actual = AdventOfCodeDay7.ResultBags.Count; Assert.Equal(expected, actual); }