IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Built-in SuiteBuilder for all types of test classes. More...
Public Member Functions | |
bool | CanBuildFrom (ITypeInfo typeInfo) |
Checks to see if the provided Type is a fixture. To be considered a fixture, it must be a non-abstract class with one or more attributes implementing the IFixtureBuilder interface or one or more methods marked as tests. More... | |
TestSuite | BuildFrom (ITypeInfo typeInfo) |
Build a TestSuite from TypeInfo provided. More... | |
Private Member Functions | |
TestSuite | BuildMultipleFixtures (ITypeInfo typeInfo, IEnumerable< TestSuite > fixtures) |
IFixtureBuilder[] | GetFixtureBuilderAttributes (ITypeInfo typeInfo) |
We look for attributes implementing IFixtureBuilder at one level of inheritance at a time. Attributes on base classes are not used unless there are no fixture builder attributes at all on the derived class. This is by design. More... | |
bool | HasArguments (IFixtureBuilder attr) |
Private Attributes | |
NUnitTestFixtureBuilder | _defaultBuilder = new NUnitTestFixtureBuilder() |
Built-in SuiteBuilder for all types of test classes.
|
inline |
Checks to see if the provided Type is a fixture. To be considered a fixture, it must be a non-abstract class with one or more attributes implementing the IFixtureBuilder interface or one or more methods marked as tests.
typeInfo | The fixture type to check |
Implements NUnit.Framework.Interfaces.ISuiteBuilder.
|
inline |
Build a TestSuite from TypeInfo provided.
typeInfo | The fixture type to build |
Implements NUnit.Framework.Interfaces.ISuiteBuilder.
References NUnit.Framework.Internal.Builders.NUnitTestFixtureBuilder.BuildFrom(), NUnit.Framework.Interfaces.ITypeInfo.IsGenericType, and NUnit.Framework.Internal.PropertyNames.SkipReason.
Referenced by NUnit.TestUtilities.TestBuilder.MakeFixture().
|
inlineprivate |
|
inlineprivate |
We look for attributes implementing IFixtureBuilder at one level of inheritance at a time. Attributes on base classes are not used unless there are no fixture builder attributes at all on the derived class. This is by design.
typeInfo | The type being examined for attributes |
References NUnit.Framework.Interfaces.ITypeInfo.BaseType, and NUnit.Framework.Interfaces.ITypeInfo.IsType().
|
inlineprivate |
References NUnit.Framework.TestFixtureAttribute.Arguments.
|
private |