示例#1
0
 public void PartTwoTest()
 {
     var subject = new LuggageSystem();
     subject.AnalyseLuggage(GetExampleInput());
     
     Assert.Equal(32,subject.GetNumberOfBagTHatContaintShinyGold());
 }
示例#2
0
 public void PartOneTest()
 {
     var subject = new LuggageSystem();
     subject.AnalyseLuggage(GetExampleInput());
     
     Assert.Equal(4,subject.GetLuggageThatCanContaintShinyGold());
 }
示例#3
0
        static void Main(string[] args)
        {
            var luggageSystem = new LuggageSystem();

            luggageSystem.AnalyseLuggage(File.ReadAllLines("../input.txt"));

            Console.WriteLine($"{luggageSystem.GetLuggageThatCanContaintShinyGold()}");

            Console.WriteLine($"{luggageSystem.GetNumberOfBagTHatContaintShinyGold()}");
        }