IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Common interface supported by all representations of a test. Only includes informational fields. The Run method is specifically excluded to allow for data-only representations of a test. More...
Properties | |
string | Id [get] |
Gets the id of the test More... | |
string | Name [get] |
Gets the name of the test More... | |
string | FullName [get] |
Gets the fully qualified name of the test More... | |
string | ClassName [get] |
Gets the name of the class containing this test. Returns null if the test is not associated with a class. More... | |
string | MethodName [get] |
Gets the name of the method implementing this test. Returns null if the test is not implemented as a method. More... | |
ITypeInfo | TypeInfo [get] |
Gets the Type of the test fixture, if applicable, or null if no fixture type is associated with this test. More... | |
IMethodInfo | Method [get] |
Gets an IMethod for the method implementing this test. Returns null if the test is not implemented as a method. More... | |
RunState | RunState [get] |
Gets the RunState of the test, indicating whether it can be run. More... | |
int | TestCaseCount [get] |
Count of the test cases ( 1 if this is a test case ) More... | |
IPropertyBag | Properties [get] |
Gets the properties of the test More... | |
ITest | Parent [get] |
Gets the parent test, if any. More... | |
bool | IsSuite [get] |
Returns true if this is a test suite More... | |
bool | HasChildren [get] |
Gets a bool indicating whether the current test has any descendant tests. More... | |
System.Collections.Generic.IList < ITest > | Tests [get] |
Gets this test's child tests More... | |
object | Fixture [get] |
Gets a fixture object for running this test. 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... | |
Common interface supported by all representations of a test. Only includes informational fields. The Run method is specifically excluded to allow for data-only representations of a test.
|
get |
Gets the id of the test
Referenced by NUnit.Framework.Internal.Filters.IdFilter.Match(), and NUnit.Framework.Internal.TestProgressReporter.TestStarted().
|
get |
Gets the name of the test
Referenced by NUnit.TestData.ActionAttributeTests.TaggedActionAttribute.AddResult(), NUnit.Framework.Internal.Builders.NamespaceTreeBuilder.AddSetUpFixture(), NUnit.Framework.Internal.SetUpFixtureTests.AssemblySetUpFixtureReplacesAssemblyNodeInTree(), NUnit.Framework.Internal.SetUpFixtureTests.InvalidAssemblySetUpFixtureIsLoadedCorrectly(), NUnit.Framework.Internal.Filters.TestNameFilter.Match(), NUnit.Framework.Internal.SetUpFixtureTests.NamespaceSetUpFixtureReplacesNamespaceNodeInTree(), NUnitLite.NUnit2XmlOutputWriter.StartTestElement(), NUnitLite.TeamCityEventListener.TestFinished(), NUnitLite.TextUI.TestFinished(), NUnitLite.TeamCityEventListener.TestStarted(), and NUnit.Framework.Internal.TestProgressReporter.TestStarted().
|
get |
Gets the fully qualified name of the test
Referenced by NUnit.Framework.Internal.SetUpFixtureTests.InvalidAssemblySetUpFixtureIsLoadedCorrectly(), NUnit.Framework.Internal.Filters.FullNameFilter.Match(), NUnit.Framework.Internal.SetUpFixtureTests.NamespaceSetUpFixtureReplacesNamespaceNodeInTree(), NUnitLite.NUnit2XmlOutputWriter.StartTestElement(), and NUnit.Framework.Internal.TestProgressReporter.TestStarted().
|
get |
Gets the name of the class containing this test. Returns null if the test is not associated with a class.
Referenced by NUnit.Framework.Internal.Filters.ClassNameFilter.Match().
|
get |
Gets the name of the method implementing this test. Returns null if the test is not implemented as a method.
Referenced by NUnit.Framework.Internal.Filters.MethodNameFilter.Match().
|
get |
Gets the Type of the test fixture, if applicable, or null if no fixture type is associated with this test.
Referenced by NUnit.Framework.Internal.TestFixtureTests.FixtureNotNullTestAttribute.BeforeTest().
|
get |
Gets an IMethod for the method implementing this test. Returns null if the test is not implemented as a method.
|
get |
Gets the RunState of the test, indicating whether it can be run.
Referenced by NUnit.Framework.Internal.SetUpFixtureTests.InvalidAssemblySetUpFixtureIsLoadedCorrectly(), NUnit.Framework.Internal.SetUpFixtureTests.NamespaceSetUpFixtureReplacesNamespaceNodeInTree(), NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_AfterLoad_ReturnsRunnableSuite(), NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_BadFile_ReturnsNonRunnableSuite(), and NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_FileNotFound_ReturnsNonRunnableSuite().
|
get |
Count of the test cases ( 1 if this is a test case )
Referenced by NUnit.Framework.Api.TestAssemblyRunnerTests.CancelRun_WhenTestIsRunning_StopsTest(), NUnitLite.NUnit3XmlOutputWriter.MakeTestRunElement(), NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_AfterLoad_ReturnsRunnableSuite(), NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_BadFile_ReturnsNonRunnableSuite(), NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_FileNotFound_ReturnsNonRunnableSuite(), and NUnit.Framework.Api.TestAssemblyRunnerTests.StopRun_WhenTestIsRunning_StopsTest().
|
get |
Gets the properties of the test
Referenced by NUnit.Framework.Internal.Filters.CategoryFilter.Match(), NUnit.Framework.Internal.Filters.PropertyFilter.Match(), NUnitLite.NUnit2XmlOutputWriter.StartTestElement(), NUnitLite.NUnit2XmlOutputWriter.WriteCategories(), and NUnitLite.NUnit2XmlOutputWriter.WriteProperties().
|
get |
Gets the parent test, if any.
The parent test or null if none exists.
Referenced by NUnit.Framework.Internal.TestProgressReporter.GetParent(), and NUnit.Framework.Internal.TestFilter.MatchParent().
|
get |
Returns true if this is a test suite
Referenced by NUnit.Framework.Api.NUnitTestAssemblyRunner.CountTestCases(), NUnitLite.TextUI.DisplayErrorsAndFailures(), NUnit.Framework.Internal.TestProgressReporter.GetParent(), NUnit.Framework.Internal.Filters.ClassNameFilter.Match(), NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_AfterLoad_ReturnsRunnableSuite(), NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_BadFile_ReturnsNonRunnableSuite(), NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_FileNotFound_ReturnsNonRunnableSuite(), NUnitLite.ResultSummary.Summarize(), NUnitLite.TeamCityEventListener.TestFinished(), NUnitLite.TextUI.TestFinished(), NUnit.Framework.Api.TestAssemblyRunnerTests.TestFinished(), NUnitLite.TeamCityEventListener.TestStarted(), NUnit.Framework.Api.TestAssemblyRunnerTests.TestStarted(), and NUnitLite.TestCaseOutputWriter.WriteTestFile().
|
get |
Gets a bool indicating whether the current test has any descendant tests.
|
get |
Gets this test's child tests
A list of child tests
Referenced by NUnit.Framework.Internal.SetUpFixtureTests.AssemblySetUpFixtureReplacesAssemblyNodeInTree(), NUnit.Framework.Api.NUnitTestAssemblyRunner.CountTestCases(), NUnit.Framework.Internal.SetUpFixtureTests.InvalidAssemblySetUpFixtureIsLoadedCorrectly(), NUnit.Framework.Internal.TestFilter.MatchDescendant(), and NUnit.Framework.Internal.SetUpFixtureTests.NamespaceSetUpFixtureReplacesNamespaceNodeInTree().
|
get |
Gets a fixture object for running this test.
Referenced by NUnit.Framework.Internal.TestFixtureTests.FixtureNotNullTestAttribute.BeforeTest().