using System; using System.Collections.Generic; using NUnit.Framework.Interfaces; namespace UnityEditor.TestTools.TestRunner.Api { public interface ITestResultAdaptor { ITestAdaptor Test { get; } string Name { get; } /// Gets the full name of the test result string FullName { get; } string ResultState { get; } TestStatus TestStatus { get; } /// Gets the elapsed time for running the test in seconds double Duration { get; } /// Gets or sets the time the test started running. DateTime StartTime { get; } /// Gets or sets the time the test finished running. DateTime EndTime { get; } /// /// Gets the message associated with a test /// failure or with not running the test /// string Message { get; } /// /// Gets any stacktrace associated with an /// error or failure. Not available in /// the Compact Framework 1.0. /// string StackTrace { get; } /// /// Gets the number of asserts executed /// when running the test and all its children. /// int AssertCount { get; } /// /// Gets the number of test cases that failed /// when running the test and all its children. /// int FailCount { get; } /// /// Gets the number of test cases that passed /// when running the test and all its children. /// int PassCount { get; } /// /// Gets the number of test cases that were skipped /// when running the test and all its children. /// int SkipCount { get; } /// /// Gets the number of test cases that were inconclusive /// when running the test and all its children. /// int InconclusiveCount { get; } /// /// Indicates whether this result has any child results. /// Accessing HasChildren should not force creation of the /// Children collection in classes implementing this interface. /// bool HasChildren { get; } /// Gets the the collection of child results. IEnumerable Children { get; } /// Gets any text output written to this result. string Output { get; } TNode ToXml(); } }