System.Dynamic.Tests.BindingRestrictionsProxyTests.ThrowOnNullToCtor C# (CSharp) Method

ThrowOnNullToCtor() private method

private ThrowOnNullToCtor ( ) : void
return void
        public void ThrowOnNullToCtor()
        {
            TargetInvocationException tie = Assert.Throws<TargetInvocationException>(() => BindingRestrictionsProxyCtor.Invoke(new object[] {null}));
            ArgumentNullException ane = (ArgumentNullException)tie.InnerException;
            Assert.Equal("node", ane.ParamName);
        }
    }