public static MSVST4U_UnitTestResult New_MSVST4U_UnitTestResult_DataDrivenRow(TestResultId id, ITestElement test, string dataRowInfo) { return MSVST4U_Tunnels.CreateDataTestResult(id, test, dataRowInfo); }
private MSVST4U_UnitTestResult TestComplete(string name, TestOutcome outcome, double duration, string output, TestResultErrorInfo errorInfo) { MSVST4U_UnitTestResult result; int dataIndex = name.IndexOf('(') + 1; if (dataIndex > 0) { _isTheory = true; string data = name.Substring(dataIndex, name.Length - dataIndex - 1); var id = new TestResultId(_runId, new TestExecId(), _test.ExecutionId, _test.Id); result = MSVST4U_Access.New_MSVST4U_UnitTestResult_DataDrivenRow(id, _test, data); } else { result = MSVST4U_Access.New_MSVST4U_UnitTestResult_Standard(_runId, _test); } _results.Add(result); result.EndTime = DateTime.Now; result.Duration = TimeSpan.FromSeconds(duration); result.StartTime = result.EndTime - result.Duration; result.Outcome = outcome; result.StdOut = output ?? ""; result.ErrorInfo = errorInfo; return result; }