static void Main(string[] args)
        {
            Console.WriteLine("+-------------------------+");
            Console.WriteLine("| Advent of Code - Day 09 |");
            Console.WriteLine("+-------------------------+");

            var input = File.ReadAllText("input.1.txt");

            var score = GarbageCollector.GetScore(input);

            Console.WriteLine($"Group score is {score}");

            var garbage = GarbageCollector.RemovedGarbage(input);

            Console.WriteLine($"Removed garbage is {garbage}");

            Console.WriteLine($" - Glædelig jul");
        }
Exemple #2
0
        public void GetScoreTest(string input, int score)
        {
            var result = GarbageCollector.GetScore(input);

            Assert.That(result, Is.EqualTo(score));
        }