Exemple #1
0
        public void Test_DayFourteen_PartTwo()
        {
            var  src          = Path.Combine(TestHelper.TestDir, "Day14.Input.txt");
            long oreAvailable = 1000000000000;
            var  fuel         = NanoFactoryHelper.FindMaximumFuelWithOre(src, oreAvailable);

            Assert.IsTrue(fuel == 2390226);
        }
Exemple #2
0
 public void Test_KnownMaxFuels()
 {
     foreach (var testTup in KnownMaxFuels)
     {
         long oreAvailable = 1000000000000;
         var  fuel         = NanoFactoryHelper.FindMaximumFuelWithOre(testTup.Item1, oreAvailable);
         Assert.IsTrue(fuel == testTup.Item2);
     }
 }