MinimalHostTest Constructor
Definition
- Namespace
- Codebelt.Extensions.Xunit.Hosting
- Assemblies
- Codebelt.Extensions.Xunit.Hosting.dll
MinimalHostTest(T, ITestOutputHelper, Type)
Initializes a new instance of the HostTest<T> class.
protected MinimalHostTest(T hostFixture, ITestOutputHelper output = null, Type callerType = null)
Parameters
hostFixtureTAn implementation of the IMinimalHostFixture interface.
outputITestOutputHelperAn implementation of the Xunit.ITestOutputHelper interface.
callerTypeTypeThe Type of caller that ends up invoking this instance.
Exceptions
- ArgumentNullException
hostFixtureis null.
MinimalHostTest(bool, T, ITestOutputHelper, Type)
Initializes a new instance of the HostTest<T> class.
protected MinimalHostTest(bool skipHostFixtureInitialization, T hostFixture, ITestOutputHelper output = null, Type callerType = null)
Parameters
skipHostFixtureInitializationboolA value indicating whether to skip the host fixture initialization.
hostFixtureTAn implementation of the IGenericHostFixture interface.
outputITestOutputHelperAn implementation of the Xunit.ITestOutputHelper interface.
callerTypeTypeThe Type of caller that ends up invoking this instance.
Exceptions
- ArgumentNullException
hostFixtureis null.