Example #1
0
        public void Test_DaySeven_PartTwo()
        {
            var testFile  = Path.Combine(TestHelper.TestDir, "Day7.Input.txt");
            var maxResult = AmplifierHelper.GetMaximumFeedbackThrustValue(testFile);

            Assert.IsTrue(maxResult == 21596786);
        }
Example #2
0
        public void Test_DaySeven_PartOne()
        {
            var testFile  = Path.Combine(TestHelper.TestDir, "Day7.Input.txt");
            var maxResult = AmplifierHelper.GetMaximumThrustValue(testFile);

            Assert.IsTrue(maxResult == 366376);
        }
Example #3
0
 public void Test_KnownFeedbackLoops()
 {
     foreach (var testTup in FeedbackTups)
     {
         var res = AmplifierHelper.GetFeedbackThrustValue(testTup.Item2.ToList(), testTup.Item3);
         Assert.IsTrue(res == testTup.Item1);
     }
 }
Example #4
0
 public void Test_KnownPhaseSettings()
 {
     foreach (var testTup in TestTups)
     {
         var res = AmplifierHelper.GetThrustValue(testTup.Item2.ToList(), string.Join(",", testTup.Item3));
         Assert.IsTrue(res == testTup.Item1);
     }
 }