Exemplo n.º 1
0
 public virtual void test_binaryOperator_fail2()
 {
     System.Func <string, string, string> a = Unchecked.binaryOperator((t, u) =>
     {
         throw new Exception();
     });
     assertThrows(() => a("A", "B"), typeof(Exception));
 }
Exemplo n.º 2
0
 //-------------------------------------------------------------------------
 public virtual void test_binaryOperator_success()
 {
     System.Func <string, string, string> a = Unchecked.binaryOperator((t, u) => t + u);
     assertEquals(a("A", "B"), "AB");
 }