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
Mostra file Open project: jsnape/deeply Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

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

Method Details

Dispose() public method

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

Dispose() protected method

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.
return void

SimpleContextFixture() public method

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

SimpleContextFixture() public method

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.
return System