[sdb] Add an API to make the contents of the 'State Machine Hoisted Local Scopes...
[mono.git] / mcs / class / Mono.Debugger.Soft / Test / dtest.cs
index 631b5985db1ff7129d11b1443984be1b7c2fabcb..2586a315eb4561e0147fb5b6739e4563f670ad07 100644 (file)
@@ -1050,6 +1050,11 @@ public class DebuggerTests
 
                e = step_in_await ("ss_await", e);//ss_await_1_exc (true, false).Wait ();//out
                e = step_in_await ("MoveNext", e);//{
+
+               // Check hoisted scope information
+               var hoisted = (e as StepEvent).Method.GetHoistedScopes ();
+               Assert.AreEqual (2, hoisted.Length);
+
                e = step_out_await ("ss_await", e);//ss_await_1_exc (true, true).Wait ();//out
        }