Class TestMethodBuilder
- Namespace
- CSF.Screenplay
- Assembly
- CSF.Screenplay.NUnit.dll
Builder class which is used to create NUnit3 test method instances for a Screenplay-based test.
public static class TestMethodBuilder
- Inheritance
-
TestMethodBuilder
- Inherited Members
Methods
BuildFrom(IMethodInfo, Test)
Gets a collection of NUnit3 TestMethod instances for the specified method and test.
public static IEnumerable<TestMethod> BuildFrom(IMethodInfo method, Test suite)
Parameters
methodIMethodInfoThe NUnit method object for a test
suiteTestThe NUnit test suite object
Returns
- IEnumerable<TestMethod>
A collection of NUnit test method instances
Remarks
This method handles the resolution of the supported injectable services, which may be used in tests by adding them as parameters to the NUnit test method.
Exceptions
- ArgumentNullException
If any parameter is null