public virtual void test_unaryOperator_fail2() { System.Func <string, string> a = Unchecked.unaryOperator((t) => { throw new Exception(); }); assertThrows(() => a("A"), typeof(Exception)); }
//------------------------------------------------------------------------- public virtual void test_unaryOperator_success() { System.Func <string, string> a = Unchecked.unaryOperator((t) => t); assertEquals(a("A"), "A"); }