public void TestUsingStaticOnDyanmicType() { Assert.Throws <RuntimeBinderException>(() => { dynamic x = new TUSODT(); Console.WriteLine(x.Hello()); }); }
public void TestUsingStaticOnDyanmicType() { using (CaptureConsole) { Assert.Throws<RuntimeBinderException>(() => { dynamic x = new TUSODT(); Console.WriteLine(x.Hello()); }); } }