Example #1
0
        public void DynamicInvokeNotOverride()
        {
            dynamic d = new DynamicallyInvokableIntPowerNotOverride();

            Assert.Throws <RuntimeBinderException>(() => d(8, 9));
            Assert.Throws <RuntimeBinderException>(() => d(int.MaxValue, int.MaxValue));
        }
Example #2
0
 public void DynamicInvokeNotOverride()
 {
     dynamic d = new DynamicallyInvokableIntPowerNotOverride();
     Assert.Throws<RuntimeBinderException>(() => d(8, 9));
     Assert.Throws<RuntimeBinderException>(() => d(int.MaxValue, int.MaxValue));
 }