C# Class Deeply.Tests.Fixtures.SimpleContextFixture

SimpleTaskContextFixture class definition.
Depending on which is simpler, this class can either be inherited by test classes or created and disposed inside test. In the first instance XUnit will automatically dispose of the instance but in the second you should use a using or finally block to ensure correct disposal.
Inheritance: IDisposable
Afficher le fichier Open project: jsnape/deeply Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

SimpleContextFixture ( ) : System

Initializes a new instance of the SimpleContextFixture class.

This constructor is normally called when used as a test base class.

SimpleContextFixture ( Action registerTypes ) : System

Initializes a new instance of the SimpleContextFixture class.

This constructor is normally used when instantiated in-test.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Method Details

Dispose() public méthode

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
protected Dispose ( bool disposing ) : void
disposing bool A flag indicating whether this instance is being disposed or finalized.
Résultat void

SimpleContextFixture() public méthode

Initializes a new instance of the SimpleContextFixture class.
This constructor is normally called when used as a test base class.
public SimpleContextFixture ( ) : System
Résultat System

SimpleContextFixture() public méthode

Initializes a new instance of the SimpleContextFixture class.
This constructor is normally used when instantiated in-test.
public SimpleContextFixture ( Action registerTypes ) : System
registerTypes Action Call-back function allowing the user to register additional classes.
Résultat System