C# Class Xunit.SpecificationCommand

A ITestCommand decorator which invokes methods on the specification class before and after the real test method executes. This requires the specification class to implement ISpecification.
Inheritance: Xunit.Sdk.TestCommand
Mostrar archivo Open project: BjRo/xunitbddextensions

Public Methods

Method Description
Execute ( object testClass ) : Xunit.Sdk.MethodResult

Executes the specified test class.

SpecificationCommand ( ITestCommand innerCommand, IMethodInfo testMethod ) : System

Initializes a new instance of the SpecificationCommand class.

Method Details

Execute() public method

Executes the specified test class.
public Execute ( object testClass ) : Xunit.Sdk.MethodResult
testClass object The test class.
return Xunit.Sdk.MethodResult

SpecificationCommand() public method

Initializes a new instance of the SpecificationCommand class.
public SpecificationCommand ( ITestCommand innerCommand, IMethodInfo testMethod ) : System
innerCommand ITestCommand The inner command.
testMethod IMethodInfo The test method.
return System