Author: marek
Date: 2008-02-01 11:38:19 -0500 (Fri, 01 Feb 2008)
New Revision: 94526

Added:
   trunk/mcs/tests/gtest-exmethod-17-lib.cs
   trunk/mcs/tests/gtest-exmethod-17.cs
Log:
New test.



Added: trunk/mcs/tests/gtest-exmethod-17-lib.cs
===================================================================
--- trunk/mcs/tests/gtest-exmethod-17-lib.cs    2008-02-01 16:37:12 UTC (rev 
94525)
+++ trunk/mcs/tests/gtest-exmethod-17-lib.cs    2008-02-01 16:38:19 UTC (rev 
94526)
@@ -0,0 +1,15 @@
+// Compiler options: -t:library
+
+using System;
+
+namespace Testy
+{
+       public static class TestExtensions
+       {
+               public static string MyFormat (this Object junk,
+                                                 string fmt, params object [] 
args)
+               {
+                       return String.Format (fmt, args);
+               }
+       }
+}


Property changes on: trunk/mcs/tests/gtest-exmethod-17-lib.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/mcs/tests/gtest-exmethod-17.cs
===================================================================
--- trunk/mcs/tests/gtest-exmethod-17.cs        2008-02-01 16:37:12 UTC (rev 
94525)
+++ trunk/mcs/tests/gtest-exmethod-17.cs        2008-02-01 16:38:19 UTC (rev 
94526)
@@ -0,0 +1,14 @@
+// Compiler options: -r:gtest-exmethod-17-lib.dll
+
+using System;
+using Testy;
+
+public static class MainClass
+{
+       public static void Main ()
+       {
+               Object o = new Object ();
+               Console.WriteLine (o.MyFormat ("hello:{0}:{1}:", "there", 
"yak"));
+       }
+}
+


Property changes on: trunk/mcs/tests/gtest-exmethod-17.cs
___________________________________________________________________
Name: svn:eol-style
   + native

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

Reply via email to