X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ftests%2Fgtest-etree-01.cs;h=785407e3ac92e892ded9187ef2948a8caba13bfd;hb=100bd760a46811121b4b47ebba941d4fb98486ab;hp=e538021cd0aff253f68ddc97dfe97a30991ec39a;hpb=9e91c36e1cf072da2fea19b6252fad485f95d78d;p=mono.git diff --git a/mcs/tests/gtest-etree-01.cs b/mcs/tests/gtest-etree-01.cs index e538021cd0a..785407e3ac9 100644 --- a/mcs/tests/gtest-etree-01.cs +++ b/mcs/tests/gtest-etree-01.cs @@ -722,6 +722,13 @@ class Tester e9.Compile ().Invoke (1); } + void CallTest_10 () + { + Expression> e = () => $"{int.MaxValue}"; + AssertNodeType (e, ExpressionType.Call); + Assert (int.MaxValue.ToString (), e.Compile ().Invoke ()); + } + void CoalesceTest () { Expression> e = (uint? a) => a ?? 99; @@ -2190,6 +2197,13 @@ class Tester Assert (0, e.Compile ().Invoke ()); } + void NewTest_8 () + { + Expression> e = () => new DateTime (); + AssertNodeType (e, ExpressionType.New); + Assert (null, ((NewExpression)e.Body).Constructor, "default ctor"); + } + void NotTest () { Expression> e = (bool a) => !a;