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