public void CanBurnContent() { _rom.Erase(); Assert.IsFalse(_rom.Burned); ushort blockSize = 0x100; var block = new byte[blockSize]; ushort blockStart = 0x200; Array.Fill <byte>(block, 0x77); _rom.BurnContent(block, blockStart); Assert.IsTrue(_rom.Burned); Assert.IsTrue(IsMemoryFilledWith(mem, ROM_START, blockStart, 0xFF), "ROM unexpected content (1)"); Assert.IsTrue(IsMemoryFilledWith(mem, (ushort)(ROM_START + blockStart), blockSize, 0x77), "ROM unexpected content (2)"); Assert.IsTrue(IsMemoryFilledWith(mem, (ushort)(ROM_START + blockStart + blockSize), (ushort)(ROM_SIZE - blockStart - blockSize), 0xFF), "ROM unexpected content (3)"); }