Exemplo n.º 1
0
 public virtual void test_supplier_fail2()
 {
     System.Func <string> a = Unchecked.supplier(() =>
     {
         throw new Exception();
     });
     assertThrows(() => a(), typeof(Exception));
 }
Exemplo n.º 2
0
 //-------------------------------------------------------------------------
 public virtual void test_supplier_success()
 {
     System.Func <string> a = Unchecked.supplier(() => "A");
     assertEquals(a(), "A");
 }