[Mono.Debugger.Soft] Add test for StackFrame.Domain
authorJb Evain <jbevain@microsoft.com>
Tue, 18 Nov 2014 13:12:36 +0000 (14:12 +0100)
committerJb Evain <jbevain@microsoft.com>
Tue, 18 Nov 2014 13:12:36 +0000 (14:12 +0100)
Assert that the property returns the proper domain for the stack frame.

mcs/class/Mono.Debugger.Soft/Test/dtest.cs

index df4fbcc664872601920c32151eaa134ffafa9461..d7aaacd3383596d24cc0c4a8e385f717fcadaa6c 100644 (file)
@@ -2869,8 +2869,10 @@ public class DebuggerTests
 
                var frames = e.Thread.GetFrames ();
                Assert.AreEqual ("invoke_in_domain", frames [0].Method.Name);
+               Assert.AreEqual (domain, frames [0].Domain);
                Assert.AreEqual ("invoke", frames [1].Method.Name);
                Assert.AreEqual ("domains", frames [2].Method.Name);
+               Assert.AreEqual (vm.RootDomain, frames [2].Domain);
 
                // Test breakpoints on already JITted methods in other domains
                m = entry_point.DeclaringType.GetMethod ("invoke_in_domain_2");