public void ArgumentPassed()
        {
            var target = new DynamicMetaObject(Expression.Parameter(typeof(object), null), BindingRestrictions.Empty);
            var arg    = new DynamicMetaObject(Expression.Parameter(typeof(object), null), BindingRestrictions.Empty);
            var binder = new MinimumOverrideUnaryOperationBinder(ExpressionType.Negate);

            Assert.Throws <ArgumentException>("args", () => binder.Bind(target, new[] { arg }));
        }
 public void ArgumentPassed()
 {
     var target = new DynamicMetaObject(Expression.Parameter(typeof(object), null), BindingRestrictions.Empty);
     var arg = new DynamicMetaObject(Expression.Parameter(typeof(object), null), BindingRestrictions.Empty);
     var binder = new MinimumOverrideUnaryOperationBinder(ExpressionType.Negate);
     Assert.Throws<ArgumentException>("args", () => binder.Bind(target, new[] {arg}));
 }
        public void NullTarget()
        {
            var binder = new MinimumOverrideUnaryOperationBinder(ExpressionType.Negate);

            Assert.Throws <ArgumentNullException>("target", () => binder.Bind(null, null));
        }
 public void NullTarget()
 {
     var binder = new MinimumOverrideUnaryOperationBinder(ExpressionType.Negate);
     Assert.Throws<ArgumentNullException>("target", () => binder.Bind(null, null));
 }