Example #1
0
 public void AddResult(string name, Guid testId, Guid executionId, string computerName, UnitTestResult.ResultOutcome outcome, string errorMessage)
 {
     TestResults.Add(new UnitTestResult
     {
         Name = name,
         Id = testId,
         ExecutionId = executionId,
         ComputerName = computerName,
         Outcome = outcome,
         ErrorMessage = errorMessage
     });
 }
Example #2
0
        public TrxBuilder AddTestResult(string name, Guid id, string computerName, UnitTestResult.ResultOutcome outcome ,string testFilePath = @"C:\TestFilePath\SomeTest", string testClassName = @"SomeTest", string stackTrace = "", string errorMessage = "")
        {
            var testId = Guid.NewGuid();
            var executionId = Guid.NewGuid();

            Definitions.AddDefinition(testId, name, executionId, testFilePath, testClassName);

            TestEntries.AddEntry(testId, executionId);

            Results.AddResult(name, testId, executionId, computerName, outcome, errorMessage);
            
            return this;
        }