Exemplo n.º 1
0
 public virtual void test_unaryOperator_fail2()
 {
     System.Func <string, string> a = Unchecked.unaryOperator((t) =>
     {
         throw new Exception();
     });
     assertThrows(() => a("A"), typeof(Exception));
 }
Exemplo n.º 2
0
 //-------------------------------------------------------------------------
 public virtual void test_unaryOperator_success()
 {
     System.Func <string, string> a = Unchecked.unaryOperator((t) => t);
     assertEquals(a("A"), "A");
 }