C# Class Grean.Exude.FirstClassCommand

An executable test case, represented as an xUnit.net ITestCommand.

This class is mostly the result of converting an ITestCase instance to an xUnit.net ITestCommand by invoking ITestCase.ConvertToTestCommand(IMethodInfo).

Inheritance: Xunit.Sdk.TestCommand
ファイルを表示 Open project: GreanTech/Exude Class Usage Examples

Public Methods

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

FirstClassCommand ( Action testAction, IMethodInfo testMethod, bool shouldCreateInstance ) : System

Initializes a new instance of the FirstClassCommand class.

The testAction constructor argument is subsequently available as the TestAction property. Likewise, the testMethod and the shouldCreateInstance constructor arguments are subsequently available as the HostTestMethod and ShouldCreateInstance properties, respectively.

Method Details

Execute() public method

public Execute ( object testClass ) : Xunit.Sdk.MethodResult
testClass object
return Xunit.Sdk.MethodResult

FirstClassCommand() public method

Initializes a new instance of the FirstClassCommand class.

The testAction constructor argument is subsequently available as the TestAction property. Likewise, the testMethod and the shouldCreateInstance constructor arguments are subsequently available as the HostTestMethod and ShouldCreateInstance properties, respectively.

/// is ///
public FirstClassCommand ( Action testAction, IMethodInfo testMethod, bool shouldCreateInstance ) : System
testAction Action /// The test action to be invoked when the test is executed. ///
testMethod IMethodInfo /// The test method with which this instance is associated. This will /// likely be the method adorned with an /// . ///
shouldCreateInstance bool /// Indicates whether an instance of the type that hosts the /// should be created. For static types, /// the value for this parameter is . For non- /// static types, the value for this parameter is . ///
return System