C# Class Xunit.DefaultBehaviorConfig

Helper base class for implementing IBehaviorConfig.
Inheritance: IBehaviorConfig
Mostra file Open project: BjRo/xunitbddextensions

Public Methods

Method Description
Cleanup ( object sut ) : void

Performs some cleanup operation on the sut.

EstablishContext ( IDependencyAccessor accessor ) : void

Uses the accessor specified by accessor in order to configure some behavior on dependencies of the system under test. This is called before the system under test has been created.

PrepareSut ( object sut ) : void

Does some preparation of the sut itself (e.g. adding some elements to container like structures)

Method Details

Cleanup() public method

Performs some cleanup operation on the sut.
public Cleanup ( object sut ) : void
sut object Specifies the sut.
return void

EstablishContext() public method

Uses the accessor specified by accessor in order to configure some behavior on dependencies of the system under test. This is called before the system under test has been created.
public EstablishContext ( IDependencyAccessor accessor ) : void
accessor IDependencyAccessor Specifies the accessor for accessing dependencies of the SUT.
return void

PrepareSut() public method

Does some preparation of the sut itself (e.g. adding some elements to container like structures)
public PrepareSut ( object sut ) : void
sut object Specifies the sut.
return void