Beispiel #1
0
        public void Puzzle1()
        {
            Computer comp = new Computer(Input, 1);

            Assert.AreEqual(6761139, comp.LastOutput);
        }
Beispiel #2
0
        public void Puzzle2()
        {
            Computer comp = new Computer(Input, 5);

            Assert.AreEqual(9217546, comp.LastOutput);
        }
Beispiel #3
0
        public void jumpAndEqualTests(int[] testprogram, int input, int result)
        {
            Computer comp8 = new Computer(testprogram, input);

            Assert.AreEqual(result, comp8.LastOutput);
        }