Exemple #1
0
 public virtual void test_biPredicate_fail2()
 {
     System.Func <string, string, bool> a = Unchecked.biPredicate((t, u) =>
     {
         throw new Exception();
     });
     assertThrows(() => a("A", "B"), typeof(Exception));
 }
Exemple #2
0
 //-------------------------------------------------------------------------
 public virtual void test_biPredicate_success()
 {
     System.Func <string, string, bool> a = Unchecked.biPredicate((t, u) => true);
     assertEquals(a("A", "B"), true);
 }