public virtual void test_binaryOperator_fail2() { System.Func <string, string, string> a = Unchecked.binaryOperator((t, u) => { throw new Exception(); }); assertThrows(() => a("A", "B"), typeof(Exception)); }
//------------------------------------------------------------------------- public virtual void test_binaryOperator_success() { System.Func <string, string, string> a = Unchecked.binaryOperator((t, u) => t + u); assertEquals(a("A", "B"), "AB"); }