public new string ToString(bool shortSummary = false) { string res = (success? "SUCCESS ": "FAIL ") + className + "." + methodName + " duration: " + duration + " "; if (!shortSummary) { res += "\n" + (exception != null?exception.Details():(errormsg != null?errormsg:"")); } else { bool hasErrorMsg = errormsg != null && errormsg.Length > 0; if (hasErrorMsg) { res += "\n" + errormsg; } } return(res); }