NUnit.Framework.Internal.TestResult
The TestResult class represents the result of a test.
namespace NUnit.Framework.Internal
{
public abstract class TestResult : LongLivedMarshalByRefObject, ITestResult, IXmlNodeBuilder
{
protected int InternalAssertCount;
protected ReaderWriterLockSlim RwLock;
public ITest Test { get; }
public ResultState ResultState { get; }
public virtual string Name { get; }
public virtual string FullName { get; }
public double Duration { get; set; }
public DateTime StartTime { get; set; }
public DateTime EndTime { get; set; }
public ICollection<TestAttachment> TestAttachments { get; }
public string Message { get; }
public virtual string StackTrace { get; }
public int AssertCount { get; }
public abstract int TotalCount { get; }
public abstract int FailCount { get; }
public abstract int WarningCount { get; }
public abstract int PassCount { get; }
public abstract int SkipCount { get; }
public abstract int InconclusiveCount { get; }
public abstract bool HasChildren { get; }
public abstract IEnumerable<ITestResult> Children { get; }
public TextWriter OutWriter { get; }
public string Output { get; }
public IList<AssertionResult> AssertionResults { get; }
public int PendingFailures { get; }
public AssertionStatus WorstAssertionStatus { get; }
public TestResult(ITest test);
public TNode ToXml(bool recursive);
public virtual TNode AddToXml(TNode parentNode, bool recursive);
public void SetResult(ResultState resultState);
public void SetResult(ResultState resultState, string message);
public void SetResult(ResultState resultState, string message, string stackTrace);
public void RecordException(Exception ex);
public void RecordException(Exception ex, FailureSite site);
public void RecordTearDownException(Exception ex);
public void RecordTestCompletion();
public void RecordAssertion(AssertionResult assertion);
public void RecordAssertion(AssertionStatus status, string message, string stackTrace);
public void RecordAssertion(AssertionStatus status, string message);
}
}