IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
NUnit.Framework.Interfaces.ITestResult Interface Reference

The ITestResult interface represents the result of a test. More...

+ Inheritance diagram for NUnit.Framework.Interfaces.ITestResult:
+ Collaboration diagram for NUnit.Framework.Interfaces.ITestResult:

Properties

ResultState ResultState [get]
 Gets the ResultState of the test result, which indicates the success or failure of the test. More...
 
string Name [get]
 Gets the name of the test result More...
 
string FullName [get]
 Gets the full name of the test result More...
 
double Duration [get]
 Gets the elapsed time for running the test in seconds More...
 
DateTime StartTime [get]
 Gets or sets the time the test started running. More...
 
DateTime EndTime [get]
 Gets or sets the time the test finished running. More...
 
string Message [get]
 Gets the message associated with a test failure or with not running the test More...
 
string StackTrace [get]
 Gets any stacktrace associated with an error or failure. Not available in the Compact Framework 1.0. More...
 
int AssertCount [get]
 Gets the number of asserts executed when running the test and all its children. More...
 
int FailCount [get]
 Gets the number of test cases that failed when running the test and all its children. More...
 
int PassCount [get]
 Gets the number of test cases that passed when running the test and all its children. More...
 
int SkipCount [get]
 Gets the number of test cases that were skipped when running the test and all its children. More...
 
int InconclusiveCount [get]
 Gets the number of test cases that were inconclusive when running the test and all its children. More...
 
bool HasChildren [get]
 Indicates whether this result has any child results. Accessing HasChildren should not force creation of the Children collection in classes implementing this interface. More...
 
System.Collections.Generic.IList
< ITestResult
Children [get]
 Gets the the collection of child results. More...
 
ITest Test [get]
 Gets the Test to which this result applies. More...
 
string Output [get]
 Gets any text output written to this result. More...
 

Additional Inherited Members

- Public Member Functions inherited from NUnit.Framework.Interfaces.IXmlNodeBuilder
TNode ToXml (bool recursive)
 Returns a TNode representing the current object. More...
 
TNode AddToXml (TNode parentNode, bool recursive)
 Returns a TNode representing the current object after adding it as a child of the supplied parent node. More...
 

Detailed Description

The ITestResult interface represents the result of a test.

Property Documentation

ResultState NUnit.Framework.Interfaces.ITestResult.ResultState
get

Gets the ResultState of the test result, which indicates the success or failure of the test.

Referenced by NUnit.Framework.Internal.TestResult.AddResult(), NUnit.Framework.Internal.SetUpFixtureTests.AssemblySetupFixtureWrapsExecutionOfTest(), NUnit.Framework.Assertions.AssertFailTests.AssertFailWorks(), NUnit.Framework.Assertions.AssertFailTests.AssertFailWorksWithMessage(), NUnit.Framework.Assertions.AssertFailTests.AssertFailWorksWithMessageAndArgs(), NUnit.Framework.Internal.UnexpectedExceptionTests.BadStackTraceIsHandled(), NUnit.Framework.Api.TestAssemblyRunnerTests.CancelRun_WhenTestIsRunning_StopsTest(), NUnit.Framework.Internal.UnexpectedExceptionTests.CustomExceptionIsHandled(), NUnitLite.TextUI.DisplayErrorsAndFailures(), NUnitLite.TextUI.DisplayTestResult(), NUnit.Framework.Attributes.MaxTimeTests.ErrorReportHasPriorityOverMaxTime(), NUnit.Framework.Internal.UnexpectedExceptionTests.FailRecordsInnerException(), NUnit.Framework.Internal.UnexpectedExceptionTests.FailRecordsNestedInnerException(), NUnit.Framework.Attributes.MaxTimeTests.FailureReportHasPriorityOverMaxTime(), NUnit.Framework.Attributes.OneTimeSetupTearDownTest.HandleErrorInFixtureSetup(), NUnit.Framework.Attributes.OneTimeSetupTearDownTest.HandleErrorInFixtureTearDown(), NUnit.Framework.Attributes.OneTimeSetupTearDownTest.HandleErrorInFixtureTearDownAfterErrorInFixtureSetUp(), NUnit.Framework.Attributes.OneTimeSetupTearDownTest.HandleErrorInFixtureTearDownAfterErrorInTest(), NUnit.Framework.Internal.SetUpTearDownTests.HandleExceptionInBothSetUpAndTearDown(), NUnit.Framework.Attributes.OneTimeSetupTearDownTest.HandleExceptionInFixtureConstructor(), NUnit.Framework.Internal.SetUpTearDownTests.HandleExceptionInTearDown(), NUnit.Framework.Attributes.OneTimeSetupTearDownTest.HandleIgnoreInFixtureSetup(), NUnit.Framework.Attributes.TestCaseSourceTests.HandlesExceptionInTestCaseSource(), NUnit.Framework.Attributes.TestCaseSourceTests.IgnoreTakesPrecedenceOverExpectedException(), NUnit.Framework.Assertions.AssertIgnoreTests.IgnoreWorksForTestCase(), NUnit.Framework.Assertions.AssertIgnoreTests.IgnoreWorksForTestSuite(), NUnit.TestUtilities.TestAssert.IsRunnable(), NUnitLite.NUnit3XmlOutputWriter.MakeTestRunElement(), NUnit.Framework.Attributes.MaxTimeTests.MaxTimeExceeded(), NUnit.Framework.Attributes.MaxTimeTests.MaxTimeExceededOnTestCase(), NUnit.Framework.Attributes.RepeatAttributeTests.RepeatWorksAsExpected(), NUnitLite.TextRunner.ReportResults(), NUnit.Framework.Attributes.OneTimeSetupTearDownTest.RerunFixtureAfterSetUpFixed(), NUnitLite.ResultSummary.ResultSummary(), NUnit.Framework.Attributes.RetryAttributeTests.RetryWorksAsExpected(), NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_AfterLoad_ReturnsRunnableSuite(), NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_BadFile_ReturnsNonRunnableSuite(), NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_FileNotFound_ReturnsNonRunnableSuite(), NUnit.Framework.Attributes.DatapointTests.RunTestOnFixture(), NUnit.Framework.Attributes.TimeoutTests.SetUpTimesOutAndTearDownIsRun(), NUnitLite.NUnit2XmlOutputWriter.StartTestElement(), NUnit.Framework.Api.TestAssemblyRunnerTests.StopRun_WhenTestIsRunning_StopsTest(), NUnit.TestUtilities.ResultSummary.Summarize(), NUnitLite.ResultSummary.Summarize(), NUnitLite.TeamCityEventListener.TestFinished(), NUnit.Framework.Api.TestAssemblyRunnerTests.TestFinished(), NUnit.Framework.Internal.TestMethodSignatureTests.TestMethodWithMultipleTestCasesExecutesMultipleTimes(), NUnit.Framework.Tests.ActionAttributeTests.TestsRunSuccessfully(), NUnit.Framework.Attributes.TimeoutTests.TestTimeOutElapsed(), NUnit.Framework.Attributes.TimeoutTests.TestTimeOutNotElapsed(), NUnit.Framework.Attributes.TimeoutTests.TestTimeOutTestCaseWithOutElapsed(), NUnit.Framework.Attributes.TimeoutTests.TestTimesOutAndTearDownIsRun(), NUnit.Framework.Attributes.TheoryTests.TheoryFailsIfAllTestsAreInconclusive(), NUnit.Framework.Attributes.TimeoutTests.TimeoutCanBeSetOnTestFixture(), and NUnitLite.NUnit2XmlOutputWriter.WriteResultElement().

string NUnit.Framework.Interfaces.ITestResult.Name
get
DateTime NUnit.Framework.Interfaces.ITestResult.StartTime
get
DateTime NUnit.Framework.Interfaces.ITestResult.EndTime
get
string NUnit.Framework.Interfaces.ITestResult.Message
get

Gets the message associated with a test failure or with not running the test

Referenced by NUnit.Framework.Assertions.AssertFailTests.AssertFailWorksWithMessage(), NUnit.Framework.Assertions.AssertFailTests.AssertFailWorksWithMessageAndArgs(), NUnit.Framework.Internal.UnexpectedExceptionTests.BadStackTraceIsHandled(), NUnit.Framework.Internal.UnexpectedExceptionTests.CustomExceptionIsHandled(), NUnitLite.TextUI.DisplayTestResult(), NUnit.Framework.Attributes.MaxTimeTests.ErrorReportHasPriorityOverMaxTime(), NUnit.Framework.Internal.UnexpectedExceptionTests.FailRecordsInnerException(), NUnit.Framework.Internal.UnexpectedExceptionTests.FailRecordsNestedInnerException(), NUnit.Framework.Attributes.MaxTimeTests.FailureReportHasPriorityOverMaxTime(), NUnit.Framework.Attributes.OneTimeSetupTearDownTest.HandleErrorInFixtureSetup(), NUnit.Framework.Attributes.OneTimeSetupTearDownTest.HandleErrorInFixtureTearDown(), NUnit.Framework.Attributes.OneTimeSetupTearDownTest.HandleErrorInFixtureTearDownAfterErrorInFixtureSetUp(), NUnit.Framework.Attributes.OneTimeSetupTearDownTest.HandleErrorInFixtureTearDownAfterErrorInTest(), NUnit.Framework.Internal.SetUpTearDownTests.HandleExceptionInBothSetUpAndTearDown(), NUnit.Framework.Attributes.OneTimeSetupTearDownTest.HandleExceptionInFixtureConstructor(), NUnit.Framework.Internal.SetUpTearDownTests.HandleExceptionInTearDown(), NUnit.Framework.Attributes.OneTimeSetupTearDownTest.HandleIgnoreInFixtureSetup(), NUnit.Framework.Attributes.TestCaseSourceTests.HandlesExceptionInTestCaseSource(), NUnit.Framework.Attributes.TestCaseSourceTests.IgnoreTakesPrecedenceOverExpectedException(), NUnit.Framework.Assertions.AssertIgnoreTests.IgnoreWorksForTestCase(), NUnit.Framework.Attributes.MaxTimeTests.MaxTimeExceeded(), NUnit.Framework.Attributes.MaxTimeTests.MaxTimeExceededOnTestCase(), NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_BadFile_ReturnsNonRunnableSuite(), NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_FileNotFound_ReturnsNonRunnableSuite(), NUnit.Framework.Attributes.TimeoutTests.SetUpTimesOutAndTearDownIsRun(), NUnitLite.TeamCityEventListener.TestFinished(), NUnit.Framework.Attributes.TimeoutTests.TestTimeOutElapsed(), NUnit.Framework.Attributes.TimeoutTests.TestTimesOutAndTearDownIsRun(), NUnit.Framework.Attributes.TheoryTests.TheoryFailsIfAllTestsAreInconclusive(), NUnit.Framework.Attributes.TimeoutTests.TimeoutCanBeSetOnTestFixture(), and NUnitLite.NUnit2XmlOutputWriter.WriteResultElement().

int NUnit.Framework.Interfaces.ITestResult.AssertCount
get

Gets the number of asserts executed when running the test and all its children.

Referenced by NUnit.Framework.Internal.TestSuiteResult.AddResult(), NUnitLite.NUnit3XmlOutputWriter.MakeTestRunElement(), and NUnitLite.NUnit2XmlOutputWriter.StartTestElement().

int NUnit.Framework.Interfaces.ITestResult.InconclusiveCount
get
bool NUnit.Framework.Interfaces.ITestResult.HasChildren
get
System.Collections.Generic.IList<ITestResult> NUnit.Framework.Interfaces.ITestResult.Children
get

Gets the the collection of child results.

Referenced by NUnitLite.TextUI.DisplayErrorsAndFailures(), NUnitLite.TextUI.DisplayNotRunResults(), NUnit.Framework.Attributes.MaxTimeTests.ErrorReportHasPriorityOverMaxTime(), NUnit.Framework.Attributes.MaxTimeTests.FailureReportHasPriorityOverMaxTime(), NUnit.TestUtilities.TestFinder.Find(), NUnit.Framework.Attributes.OneTimeSetupTearDownTest.HandleErrorInFixtureSetup(), NUnit.Framework.Attributes.OneTimeSetupTearDownTest.HandleErrorInFixtureTearDown(), NUnit.Framework.Attributes.OneTimeSetupTearDownTest.HandleErrorInFixtureTearDownAfterErrorInFixtureSetUp(), NUnit.Framework.Attributes.OneTimeSetupTearDownTest.HandleErrorInFixtureTearDownAfterErrorInTest(), NUnit.Framework.Internal.SetUpTearDownTests.HandleExceptionInBothSetUpAndTearDown(), NUnit.Framework.Attributes.OneTimeSetupTearDownTest.HandleExceptionInFixtureConstructor(), NUnit.Framework.Internal.SetUpTearDownTests.HandleExceptionInSetUp(), NUnit.Framework.Internal.SetUpTearDownTests.HandleExceptionInTearDown(), NUnit.Framework.Attributes.OneTimeSetupTearDownTest.HandleIgnoreInFixtureSetup(), NUnit.Framework.Attributes.TestCaseSourceTests.IgnoreTakesPrecedenceOverExpectedException(), NUnit.Framework.Assertions.AssertIgnoreTests.IgnoreWorksForTestSuite(), NUnit.Framework.Assertions.AssertIgnoreTests.IgnoreWorksFromSetUp(), NUnit.TestUtilities.TestAssert.IsRunnable(), NUnit.Framework.Attributes.MaxTimeTests.MaxTimeExceeded(), NUnit.Framework.Attributes.MaxTimeTests.MaxTimeExceededOnTestCase(), NUnit.Framework.Attributes.OneTimeSetupTearDownTest.RerunFixtureAfterTearDownFixed(), NUnit.TestUtilities.ResultSummary.Summarize(), NUnitLite.ResultSummary.Summarize(), NUnit.Framework.Attributes.TimeoutTests.TestTimeOutTestCaseWithOutElapsed(), and NUnitLite.NUnit2XmlOutputWriter.WriteChildResults().

string NUnit.Framework.Interfaces.ITestResult.Output
get

Gets any text output written to this result.

Referenced by NUnitLite.TextUI.TestFinished(), and NUnitLite.TextRunner.TestFinished().


The documentation for this interface was generated from the following file: