public void AssignUnary_Factory_ArgumentChecking()
        {
            var o = Expression.Parameter(typeof(int));

            AssertEx.Throws <ArgumentException>(() => CSharpExpression.MakeUnaryAssign(CSharpExpressionType.Await, o, null));
        }
 public void DynamicAwait_Factory_ArgumentChecking()
 {
     AssertEx.Throws <ArgumentNullException>(() => DynamicCSharpExpression.DynamicAwait(default(Expression)));
     AssertEx.Throws <ArgumentNullException>(() => DynamicCSharpExpression.DynamicAwait(default(Expression), false));
     AssertEx.Throws <ArgumentNullException>(() => DynamicCSharpExpression.DynamicAwait(default(Expression), false, typeof(DynamicAwaitTests)));
 }