Author: martin
Date: 2008-02-06 03:51:31 -0500 (Wed, 06 Feb 2008)
New Revision: 95003

Modified:
   branches/martin/debugger-terrania/debugger/test/src/TestAnonymous.cs
   branches/martin/debugger-terrania/debugger/test/testsuite/TestAnonymous.cs
Log:


Modified: branches/martin/debugger-terrania/debugger/test/src/TestAnonymous.cs
===================================================================
--- branches/martin/debugger-terrania/debugger/test/src/TestAnonymous.cs        
2008-02-06 08:50:25 UTC (rev 95002)
+++ branches/martin/debugger-terrania/debugger/test/src/TestAnonymous.cs        
2008-02-06 08:51:31 UTC (rev 95003)
@@ -7,6 +7,7 @@
        {
                Test1.X.Run ();                                         // @MDB 
LINE: main
                Test2.X.Run ();
+               Test3.X.Run ();
        }
 }
 
@@ -68,3 +69,31 @@
                }
        }
 }
+
+namespace Test3
+{
+       delegate void Foo<S> (S s);
+
+       public class X
+       {
+               public U Hello<U> (U u)
+               {
+                       return u;                                       // @MDB 
BREAKPOINT: test3 hello
+               }
+
+               public void Test<T> (T t)
+               {
+                       Hello (t);                                      // @MDB 
BREAKPOINT: test3
+                       Foo<T> foo = delegate (T u) {
+                               Hello (u);                              // @MDB 
LINE: test3 foo
+                       };
+                       foo (t);                                        // @MDB 
BREAKPOINT: test3 after foo
+               }
+
+               public static void Run ()
+               {
+                       X x = new X ();
+                       x.Test (3);
+               }
+       }
+}

Modified: 
branches/martin/debugger-terrania/debugger/test/testsuite/TestAnonymous.cs
===================================================================
--- branches/martin/debugger-terrania/debugger/test/testsuite/TestAnonymous.cs  
2008-02-06 08:50:25 UTC (rev 95002)
+++ branches/martin/debugger-terrania/debugger/test/testsuite/TestAnonymous.cs  
2008-02-06 08:51:31 UTC (rev 95003)
@@ -44,7 +44,7 @@
 
                        AssertExecute ("step");
                        // FIXME: Print a better method name
-                       AssertStopped (thread, 
"Test1.X/<>c__CompilerGenerated3`1<R>.<Test1>c__4()",
+                       AssertStopped (thread, 
"Test1.X/<>c__CompilerGenerated4`1<R>.<Test1>c__5()",
                                       GetLine ("test1 foo"));
 
                        AssertPrint (thread, "a", "(int) 2");
@@ -91,9 +91,12 @@
 
                        AssertExecute ("step");
                        AssertStopped (thread,
-                                      
"Test2.X/<>c__CompilerGenerated1`1<T>.<Test>c__5()",
+                                      
"Test2.X/<>c__CompilerGenerated1`1<T>.<Test>c__6()",
                                       GetLine ("test2 foo"));
 
+                       // FIXME
+                       // AssertPrint (thread, "t", "(int) 3");
+                       // AssertType (thread, "t", "int");
                        AssertPrint (thread, "u", "(int) 3");
                        AssertType (thread, "u", "int");
 
@@ -109,6 +112,40 @@
 
                        AssertExecute ("continue");
 
+                       //
+                       // Test3
+                       //
+
+                       AssertHitBreakpoint (thread, "test3", 
"Test3.X.Test(T)");
+                       AssertPrint (thread, "t", "(int) 3");
+                       AssertType (thread, "t", "int");
+
+                       AssertExecute ("continue");
+                       AssertHitBreakpoint (thread, "test3 hello", 
"Test3.X.Hello(U)");
+                       AssertPrint (thread, "u", "(int) 3");
+                       AssertType (thread, "u", "int");
+
+                       AssertExecute ("continue");
+                       AssertHitBreakpoint (thread, "test3 after foo", 
"Test3.X.Test(T)");
+
+                       AssertExecute ("step");
+                       AssertStopped (thread,
+                                      
"Test3.X/<>c__CompilerGenerated2`1<T>.<Test>c__7(S)",
+                                      GetLine ("test3 foo"));
+
+                       // FIXME
+                       // AssertPrint (thread, "t", "(int) 3");
+                       // AssertType (thread, "t", "int");
+                       AssertPrint (thread, "u", "(int) 3");
+                       AssertType (thread, "u", "int");
+
+                       AssertExecute ("continue");
+                       AssertHitBreakpoint (thread, "test3 hello", 
"Test3.X.Hello(U)");
+                       AssertPrint (thread, "u", "(int) 3");
+                       AssertType (thread, "u", "int");
+
+                       AssertExecute ("continue");
+
                        AssertTargetExited (thread.Process);
                }
        }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to