C# Class Jwc.Experiment.Xunit.TestBaseAttribute

Represents base attribute to indicate that a given method is a test method.
Inheritance: FactAttribute, ISpecimenBuilderFactory
Show file Open project: jwChung/Experimentalism

Protected Methods

Method Description
Create ( ITestMethodContext context ) : ISpecimenBuilder

Creates a specimen builder.

EnumerateTestCommands ( IMethodInfo method ) : IEnumerable

Enumerates the test commands represented by this test method. Derived classes should override this method to return instances of T:Xunit.Sdk.ITestCommand, one per execution of a test method.

TestBaseAttribute ( ) : System

Initializes a new instance of the TestBaseAttribute class.

TestBaseAttribute ( ITestCommandFactory factory ) : System

Initializes a new instance of the TestBaseAttribute class.

Private Methods

Method Description
ISpecimenBuilderFactory ( ITestMethodContext context ) : ISpecimenBuilder

Method Details

Create() protected abstract method

Creates a specimen builder.
protected abstract Create ( ITestMethodContext context ) : ISpecimenBuilder
context ITestMethodContext /// The test information about a test method. ///
return ISpecimenBuilder

EnumerateTestCommands() protected method

Enumerates the test commands represented by this test method. Derived classes should override this method to return instances of T:Xunit.Sdk.ITestCommand, one per execution of a test method.
protected EnumerateTestCommands ( IMethodInfo method ) : IEnumerable
method IMethodInfo /// The test method. ///
return IEnumerable

TestBaseAttribute() protected method

Initializes a new instance of the TestBaseAttribute class.
protected TestBaseAttribute ( ) : System
return System

TestBaseAttribute() protected method

Initializes a new instance of the TestBaseAttribute class.
protected TestBaseAttribute ( ITestCommandFactory factory ) : System
factory ITestCommandFactory /// A factory to create test commands. ///
return System