Example #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));
 }
Example #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");
 }