public void PostByteSimpleX_0_15() { for (var offset = 0; offset < 16; offset++) { TestContext.WriteLine("postbyte simple X: {0}", offset); Init(); readMemoryAddress = new List <byte>() { (byte)offset }; cpu.set("flags", 0); cpu.regX = 0; cpu.regPC = 0; var result = cpu.PostByte(); Assert.That(result, Is.EqualTo(offset)); Assert.That(cpu.flagsToString(), Is.EqualTo("efhinzvc")); Assert.That(cpu.regX, Is.EqualTo(0)); Assert.That(cpu.tickCount, Is.EqualTo(1)); Assert.That(readMemoryAddressAccess[0], Is.EqualTo(0)); } }