@ -26,7 +26,6 @@ namespace Debugger.Tests {
@@ -26,7 +26,6 @@ namespace Debugger.Tests {
public partial class DebuggerTests
{
[NUnit.Framework.Test]
[NUnit.Framework.Ignore("Ignored because it fails too frequently - the expected output seems to be different on each machine (or at least for each .NET/Windows version combination)")]
public void MemoryReadWrite ( )
{
StartTest ( "MemoryReadWrite.cs" ) ;
@ -37,13 +36,13 @@ namespace Debugger.Tests {
@@ -37,13 +36,13 @@ namespace Debugger.Tests {
addrHello = DeRef ( process . ReadMemory ( addrHello , 4 ) ) ;
addrWorld = DeRef ( process . ReadMemory ( addrWorld , 4 ) ) ;
byte [ ] hello = process . ReadMemory ( addrHello , 2 2 ) ;
byte [ ] world = process . ReadMemory ( addrWorld , 2 4 ) ;
byte [ ] hello = process . ReadMemory ( addrHello , 1 8 ) ;
byte [ ] world = process . ReadMemory ( addrWorld , 2 0 ) ;
ObjectDump ( "hello" , ToHex ( hello ) ) ;
ObjectDump ( "world" , ToHex ( world ) ) ;
process . WriteMemory ( addrWorld + 1 2 , new byte [ ] { 0x77 , 0x0 , 0x6F , 0x0 , 0x72 , 0x0 , 0x6C , 0x0 , 0x64 , 0x0 } ) ;
process . WriteMemory ( addrWorld + 8 , new byte [ ] { 0x77 , 0x0 , 0x6F , 0x0 , 0x72 , 0x0 , 0x6C , 0x0 , 0x64 , 0x0 } ) ;
EndTest ( ) ;
}
@ -75,8 +74,8 @@ namespace Debugger.Tests {
@@ -75,8 +74,8 @@ namespace Debugger.Tests {
< ModuleLoaded > MemoryReadWrite . exe ( Has symbols ) < / ModuleLoaded >
< ModuleLoaded > System . dll ( No symbols ) < / ModuleLoaded >
< DebuggingPaused > Break MemoryReadWrite . cs : 1 8 , 4 - 1 8 , 4 0 < / DebuggingPaused >
< hello > 0 A 4D 3 6 0 0 0 5 0 0 0 4 8 0 6 5 0 6 C 0 6 C 0 6F 0 < / hello >
< world > 0 A 4D 3 7 0 0 0 6 0 0 0 2 0 0 2 0 0 2 0 0 2 0 0 2 0 0 2 1 0 < / world >
< hello > 5 4 B7 A1 7 9 5 0 0 0 4 8 0 6 5 0 6 C 0 6 C 0 6F 0 < / hello >
< world > 5 4 B7 A1 7 9 6 0 0 0 2 0 0 2 0 0 2 0 0 2 0 0 2 0 0 2 1 0 < / world >
< ModuleLoaded > System . Configuration . dll ( No symbols ) < / ModuleLoaded >
< ModuleLoaded > System . Xml . dll ( No symbols ) < / ModuleLoaded >
< LogMessage > Hello world ! \ r \ n < / LogMessage >