Ejemplo n.º 1
0
        public void BasicSampleOfOre()
        {
            var input = new[]
            {
                "10 ORE => 10 A",
                "1 ORE => 1 B",
                "7 A, 1 B => 1 C",
                "7 A, 1 C => 1 D",
                "7 A, 1 D => 1 E",
                "7 A, 1 E => 1 FUEL",
            };

            _day14.Parse(input);
            Assert.AreEqual(31, _day14.CalculateAmountOfOreRequired());
        }