protected void ExecuteTestCase(string name, TestCaseDelegate f) { Exception exp = null; //sub test start try { BeginCase(name); Compare(f(), true); } catch (Exception ex) { exp = ex; } finally{ EndCase(exp); exp = null; } //sub test end }
protected void ExecuteTestCase(string name, TestCaseDelegate f) { Exception exp = null; //sub test start try { BeginCase(name); Compare( f(), true ); } catch(Exception ex){exp = ex;} finally{EndCase(exp); exp = null;} //sub test end }