IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
The ITestResult interface represents the result of a test. More...
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 | |
![]() | |
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... | |
The ITestResult interface represents the result of a test.
|
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().
|
get |
Gets the name of the test result
Referenced by NUnitLite.NUnit3XmlOutputWriter.MakeTestRunElement(), NUnitLite.NUnit2XmlOutputWriter.StartTestElement(), and NUnit.TestUtilities.ResultSummary.Summarize().
|
get |
Gets the full name of the test result
Referenced by NUnitLite.TextUI.DisplayTestResult(), NUnitLite.NUnit2XmlOutputWriter.InitializeXmlFile(), NUnitLite.NUnit3XmlOutputWriter.MakeTestRunElement(), and NUnit.Framework.Internal.TestProgressReporter.TestFinished().
|
get |
Gets the elapsed time for running the test in seconds
Referenced by NUnitLite.NUnit3XmlOutputWriter.MakeTestRunElement(), NUnitLite.ResultSummary.ResultSummary(), NUnitLite.NUnit2XmlOutputWriter.StartTestElement(), NUnit.TestUtilities.ResultSummary.Summarize(), and NUnitLite.TeamCityEventListener.TestFinished().
|
get |
Gets or sets the time the test started running.
Referenced by NUnitLite.NUnit2XmlOutputWriter.InitializeXmlFile(), NUnitLite.NUnit3XmlOutputWriter.MakeTestRunElement(), NUnitLite.ResultSummary.ResultSummary(), and NUnit.TestUtilities.ResultSummary.Summarize().
|
get |
Gets or sets the time the test finished running.
Referenced by NUnitLite.NUnit3XmlOutputWriter.MakeTestRunElement(), NUnitLite.ResultSummary.ResultSummary(), and NUnit.TestUtilities.ResultSummary.Summarize().
|
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().
|
get |
Gets any stacktrace associated with an error or failure. Not available in the Compact Framework 1.0.
Referenced by NUnit.Framework.Internal.UnexpectedExceptionTests.BadStackTraceIsHandled(), NUnitLite.TextUI.DisplayTestResult(), 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(), NUnitLite.TeamCityEventListener.TestFinished(), and NUnitLite.NUnit2XmlOutputWriter.WriteResultElement().
|
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().
|
get |
Gets the number of test cases that failed when running the test and all its children.
Referenced by NUnit.Framework.Internal.TestSuiteResult.AddResult(), NUnit.Framework.Attributes.OneTimeSetupTearDownTest.HandleErrorInFixtureSetup(), NUnit.Framework.Attributes.OneTimeSetupTearDownTest.HandleExceptionInFixtureConstructor(), NUnitLite.NUnit3XmlOutputWriter.MakeTestRunElement(), and NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_AfterLoad_ReturnsRunnableSuite().
|
get |
Gets the number of test cases that passed when running the test and all its children.
Referenced by NUnit.Framework.Internal.TestSuiteResult.AddResult(), NUnit.Framework.Internal.SetUpFixtureTests.AssemblySetupFixtureWrapsExecutionOfTest(), NUnit.Framework.Api.TestAssemblyRunnerTests.CancelRun_WhenTestIsRunning_StopsTest(), NUnitLite.NUnit3XmlOutputWriter.MakeTestRunElement(), NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_AfterLoad_ReturnsRunnableSuite(), and NUnit.Framework.Api.TestAssemblyRunnerTests.StopRun_WhenTestIsRunning_StopsTest().
|
get |
Gets the number of test cases that were skipped when running the test and all its children.
Referenced by NUnit.Framework.Internal.TestSuiteResult.AddResult(), NUnit.Framework.Attributes.OneTimeSetupTearDownTest.HandleIgnoreInFixtureSetup(), NUnitLite.NUnit3XmlOutputWriter.MakeTestRunElement(), and NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_AfterLoad_ReturnsRunnableSuite().
|
get |
Gets the number of test cases that were inconclusive when running the test and all its children.
Referenced by NUnit.Framework.Internal.TestSuiteResult.AddResult(), NUnitLite.NUnit3XmlOutputWriter.MakeTestRunElement(), and NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_AfterLoad_ReturnsRunnableSuite().
|
get |
Indicates whether this result has any child results. Accessing HasChildren should not force creation of the Children collection in classes implementing this interface.
Referenced by NUnitLite.TextUI.DisplayNotRunResults(), NUnit.TestUtilities.TestFinder.Find(), NUnit.Framework.Internal.SetUpTearDownTests.HandleExceptionInBothSetUpAndTearDown(), NUnit.Framework.Internal.SetUpTearDownTests.HandleExceptionInSetUp(), NUnit.Framework.Internal.SetUpTearDownTests.HandleExceptionInTearDown(), NUnit.TestUtilities.TestAssert.IsRunnable(), and NUnit.TestUtilities.ResultSummary.Summarize().
|
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().
|
get |
Gets the Test to which this result applies.
Referenced by NUnitLite.TextUI.DisplayErrorsAndFailures(), NUnitLite.NUnit3XmlOutputWriter.MakeTestRunElement(), NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_AfterLoad_ReturnsRunnableSuite(), NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_BadFile_ReturnsNonRunnableSuite(), NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_FileNotFound_ReturnsNonRunnableSuite(), NUnitLite.NUnit2XmlOutputWriter.StartTestElement(), NUnitLite.ResultSummary.Summarize(), NUnitLite.TeamCityEventListener.TestFinished(), NUnit.Framework.Internal.TestProgressReporter.TestFinished(), NUnitLite.TextUI.TestFinished(), NUnit.Framework.Api.TestAssemblyRunnerTests.TestFinished(), NUnitLite.NUnit2XmlOutputWriter.WriteCategories(), NUnitLite.NUnit2XmlOutputWriter.WriteProperties(), NUnitLite.NUnit2XmlOutputWriter.WriteResultElement(), and NUnitLite.TestCaseOutputWriter.WriteResultFile().
|
get |
Gets any text output written to this result.
Referenced by NUnitLite.TextUI.TestFinished(), and NUnitLite.TextRunner.TestFinished().