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.ITestCaseBuilder Interface Reference

The ITestCaseBuilder interface is exposed by a class that knows how to build a test case from certain methods. More...

+ Inheritance diagram for NUnit.Framework.Interfaces.ITestCaseBuilder:

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...
 

Detailed Description

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.

Member Function Documentation

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.

Parameters
methodThe test method to examine
suiteThe suite being populated
Returns
True is the builder can use this method

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.

Parameters
methodThe method to be used as a test case
suiteThe test suite being populated, or null
Returns
A TestCase or null

Implemented in NUnit.Framework.Internal.Builders.DefaultTestCaseBuilder.

Referenced by NUnit.Framework.Internal.Builders.NUnitTestFixtureBuilder.BuildTestCase().


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