Exemplo n.º 1
0
 //-------------------------------------------------------------------------
 public virtual void test_biConsumer_success()
 {
     System.Action <string, string> a = Unchecked.biConsumer((t, u) =>
     {
     });
     a("A", "B");
 }
Exemplo n.º 2
0
 public virtual void test_biConsumer_fail2()
 {
     System.Action <string, string> a = Unchecked.biConsumer((t, u) =>
     {
         throw new Exception();
     });
     assertThrows(() => a("A", "B"), typeof(Exception));
 }