IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
The ITestCaseBuilder interface is exposed by a class that knows how to build a test case from certain methods. More...
Public Member Functions | |
bool | CanBuildFrom (IMethodInfo method, Test suite) |
Examine the method and determine if it is suitable for this builder to use in building a TestCase to be included in the suite being populated. More... | |
Test | BuildFrom (IMethodInfo method, Test suite) |
Build a TestCase from the provided MethodInfo for inclusion in the suite being constructed. More... | |
The ITestCaseBuilder interface is exposed by a class that knows how to build a test case from certain methods.
This interface is not the same as the ITestCaseBuilder interface in NUnit 2.x. We have reused the name because the two products don't interoperate at all.
bool NUnit.Framework.Interfaces.ITestCaseBuilder.CanBuildFrom | ( | IMethodInfo | method, |
Test | suite | ||
) |
Examine the method and determine if it is suitable for this builder to use in building a TestCase to be included in the suite being populated.
Note that returning false will cause the method to be ignored in loading the tests. If it is desired to load the method but label it as non-runnable, ignored, etc., then this method must return true.
method | The test method to examine |
suite | The suite being populated |
Implemented in NUnit.Framework.Internal.Builders.DefaultTestCaseBuilder.
Referenced by NUnit.Framework.Internal.Builders.NUnitTestFixtureBuilder.BuildTestCase().
Test NUnit.Framework.Interfaces.ITestCaseBuilder.BuildFrom | ( | IMethodInfo | method, |
Test | suite | ||
) |
Build a TestCase from the provided MethodInfo for inclusion in the suite being constructed.
method | The method to be used as a test case |
suite | The test suite being populated, or null |
Implemented in NUnit.Framework.Internal.Builders.DefaultTestCaseBuilder.
Referenced by NUnit.Framework.Internal.Builders.NUnitTestFixtureBuilder.BuildTestCase().