Example #1
0
        public void Test_cpu_instrs()
        {
            var expectedResult = "cpu_instrs\n\n01:ok  02:ok  03:ok  04:ok  05:ok  06:ok  07:ok  08:ok  09:ok  10:ok  11:ok  \n\nPassed all tests\n";

            var testRomRunner = new TestRomRunner("BlarggsIntegrationTests/Roms/cpu_instrs.gb");

            testRomRunner.Run(58740146);

            var result = testRomRunner.GetSentSerialDataAsString();

            Console.WriteLine(result);

            Assert.AreEqual(expectedResult, result);
        }
Example #2
0
        public void Test_instr_timing()
        {
            var expectedResult = "instr_timing\n\n\nPassed\n";

            var testRomRunner = new TestRomRunner("BlarggsIntegrationTests/Roms/instr_timing.gb");

            testRomRunner.Run(1000000);

            var result = testRomRunner.GetSentSerialDataAsString();

            Console.WriteLine(result);

            Assert.AreEqual(expectedResult, result);
        }