Пример #1
0
        public void TestAmplificationCircuitFeedBackLoop(int[] program, int expected)
        {
            var output = AmplificationCircuit.FindMaxThrust(program, new[] { 5, 6, 7, 8, 9 });

            Assert.AreEqual(expected, output);
        }
Пример #2
0
        public void TestAmplificationCircuit(int[] program, int expected)
        {
            var output = AmplificationCircuit.FindMaxThrust(program, new[] { 0, 1, 2, 3, 4 });

            Assert.AreEqual(expected, output);
        }