New tests.
[mono.git] / mcs / class / System.Core / Test / System.Linq.Expressions / ExpressionTest_Quote.cs
index b95f542121df6903fe487fbcbb34fcc255e2e87b..fedaa5f7ab9041bfb4510501a7dc223063b96bfe 100644 (file)
@@ -37,14 +37,23 @@ namespace MonoTests.System.Linq.Expressions
                        Expression.Quote (null);
                }
 
+#if !NET_4_0
                [Test]
-               public void Constant ()
+               public void QuoteConstant ()
                {
                        UnaryExpression expr = Expression.Quote (Expression.Constant (1));
                        Assert.AreEqual (ExpressionType.Quote, expr.NodeType, "Quote#01");
                        Assert.AreEqual (typeof (ConstantExpression), expr.Type, "Quote#02");
                        Assert.AreEqual ("1", expr.ToString(), "Quote#03");
                }
+#else
+               [Test]
+               [ExpectedException (typeof (ArgumentException))]
+               public void QuoteConstant ()
+               {
+                       Expression.Quote (Expression.Constant (1));
+               }
+#endif
 
                [Test]
                public void CompiledQuote ()