Example #1
0
        public static void Error(TestResultShim testResult, string multilineName, Exception exception, IEnumerable<string> traceMessages, TestResultShim.Site failureSite = TestResultShim.Site.Test)
        {
            traceMessages = traceMessages ?? new List<string>();

            testResult.SetError(BuildMessage(exception), BuildStackTrace(exception, multilineName, traceMessages), failureSite);
        }
        public static void Error(TestResultShim testResult, string multilineName, Exception exception, IEnumerable <string> traceMessages, TestResultShim.Site failureSite = TestResultShim.Site.Test)
        {
            traceMessages = traceMessages ?? new List <string>();

            testResult.SetError(BuildMessage(exception), BuildStackTrace(exception, multilineName, traceMessages), failureSite);
        }