Author: jbevain
Date: 2008-01-21 09:08:28 -0500 (Mon, 21 Jan 2008)
New Revision: 93385

Modified:
   
trunk/mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_UnaryPlus.cs
   
trunk/mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_Utils.cs
Log:
constant rocks

Modified: 
trunk/mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_UnaryPlus.cs
===================================================================
--- 
trunk/mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_UnaryPlus.cs
        2008-01-21 13:25:36 UTC (rev 93384)
+++ 
trunk/mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_UnaryPlus.cs
        2008-01-21 14:08:28 UTC (rev 93385)
@@ -68,7 +68,7 @@
                [Test]
                public void Number ()
                {
-                       var up = Expression.UnaryPlus (Expression.Constant (1));
+                       var up = Expression.UnaryPlus (1.ToConstant ());
                        Assert.AreEqual ("+1", up.ToString ());
                }
 

Modified: 
trunk/mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_Utils.cs
===================================================================
--- 
trunk/mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_Utils.cs
    2008-01-21 13:25:36 UTC (rev 93384)
+++ 
trunk/mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_Utils.cs
    2008-01-21 14:08:28 UTC (rev 93385)
@@ -268,4 +268,12 @@
                        return a;
                }
        }
+
+       static class ExpressionExtensions {
+
+               public static ConstantExpression ToConstant<T> (this T t)
+               {
+                       return Expression.Constant (t);
+               }
+       }
 }

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

Reply via email to