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