Author: jbevain
Date: 2008-02-04 10:00:48 -0500 (Mon, 04 Feb 2008)
New Revision: 94746

Modified:
   
trunk/mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_CallWithExpression.cs
   
trunk/mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_New.cs
Log:
add useful assertions

Modified: 
trunk/mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_CallWithExpression.cs
===================================================================
--- 
trunk/mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_CallWithExpression.cs
       2008-02-04 14:35:53 UTC (rev 94745)
+++ 
trunk/mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_CallWithExpression.cs
       2008-02-04 15:00:48 UTC (rev 94746)
@@ -94,9 +94,9 @@
                }
 
                [Test]
-               public void CallStringIsNullOrEmpty()
+               public void CallStringIsNullOrEmpty ()
                {
-                       var call = Expression.Call (null, typeof 
(string).GetMethod ("IsNullOrEmpty"), Expression.Constant(""));
+                       var call = Expression.Call (null, typeof 
(string).GetMethod ("IsNullOrEmpty"), Expression.Constant (""));
                        Assert.AreEqual ("IsNullOrEmpty(\"\")", call.ToString 
());
                }
 

Modified: 
trunk/mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_New.cs
===================================================================
--- 
trunk/mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_New.cs  
    2008-02-04 14:35:53 UTC (rev 94745)
+++ 
trunk/mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_New.cs  
    2008-02-04 15:00:48 UTC (rev 94746)
@@ -106,6 +106,8 @@
 
                        Assert.AreEqual (ExpressionType.New, n.NodeType);
                        Assert.AreEqual (typeof (Foo), n.Type);
+                       Assert.AreEqual (1, n.Arguments.Count);
+                       Assert.IsNull (n.Members);
                        Assert.AreEqual ("new Foo(\"foo\")", n.ToString ());
                }
 

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

Reply via email to