public void PartTwoTest() { var subject = new LuggageSystem(); subject.AnalyseLuggage(GetExampleInput()); Assert.Equal(32,subject.GetNumberOfBagTHatContaintShinyGold()); }
public void PartOneTest() { var subject = new LuggageSystem(); subject.AnalyseLuggage(GetExampleInput()); Assert.Equal(4,subject.GetLuggageThatCanContaintShinyGold()); }
static void Main(string[] args) { var luggageSystem = new LuggageSystem(); luggageSystem.AnalyseLuggage(File.ReadAllLines("../input.txt")); Console.WriteLine($"{luggageSystem.GetLuggageThatCanContaintShinyGold()}"); Console.WriteLine($"{luggageSystem.GetNumberOfBagTHatContaintShinyGold()}"); }