C# Class NUnit.Framework.TestFixtureSourceAttribute

Inheritance: NUnit.Framework.NUnitAttribute, IFixtureBuilder
Afficher le fichier Open project: nunit/nunit

Méthodes publiques

Méthode Description
BuildFrom ( ITypeInfo typeInfo ) : IEnumerable

Construct one or more TestFixtures from a given Type, using available parameter data.

GetParametersFor ( Type sourceType ) : IEnumerable

Returns a set of ITestFixtureData items for use as arguments to a parameterized test fixture.

TestFixtureSourceAttribute ( Type sourceType ) : System

Construct with a Type

TestFixtureSourceAttribute ( Type sourceType, string sourceName ) : System

Construct with a Type and name

TestFixtureSourceAttribute ( string sourceName ) : System

Construct with the name of the method, property or field that will provide data

Private Methods

Méthode Description
GetTestFixtureSource ( Type sourceType ) : IEnumerable
SourceMustBeStaticError ( ) : IEnumerable

Method Details

BuildFrom() public méthode

Construct one or more TestFixtures from a given Type, using available parameter data.
public BuildFrom ( ITypeInfo typeInfo ) : IEnumerable
typeInfo ITypeInfo The TypeInfo for which fixtures are to be constructed.
Résultat IEnumerable

GetParametersFor() public méthode

Returns a set of ITestFixtureData items for use as arguments to a parameterized test fixture.
public GetParametersFor ( Type sourceType ) : IEnumerable
sourceType System.Type The type for which data is needed.
Résultat IEnumerable

TestFixtureSourceAttribute() public méthode

Construct with a Type
public TestFixtureSourceAttribute ( Type sourceType ) : System
sourceType System.Type The type that will provide data
Résultat System

TestFixtureSourceAttribute() public méthode

Construct with a Type and name
public TestFixtureSourceAttribute ( Type sourceType, string sourceName ) : System
sourceType System.Type The Type that will provide data
sourceName string The name of a static method, property or field that will provide data.
Résultat System

TestFixtureSourceAttribute() public méthode

Construct with the name of the method, property or field that will provide data
public TestFixtureSourceAttribute ( string sourceName ) : System
sourceName string The name of a static method, property or field that will provide data.
Résultat System