Table of Contents

HostTest Constructor

Definition

Namespace
Codebelt.Extensions.Xunit.Hosting
Assemblies
Codebelt.Extensions.Xunit.Hosting.dll
Source
src/Codebelt.Extensions.Xunit.Hosting/HostTest.cs

HostTest(T, ITestOutputHelper, Type)

Initializes a new instance of the HostTest<T> class.

protected HostTest(T hostFixture, ITestOutputHelper output = null, Type callerType = null)

Parameters

hostFixture T

An implementation of the IGenericHostFixture interface.

output ITestOutputHelper

An implementation of the Xunit.ITestOutputHelper interface.

callerType Type

The Type of caller that ends up invoking this instance.

Exceptions

ArgumentNullException

hostFixture is null.

HostTest(bool, T, ITestOutputHelper, Type)

Initializes a new instance of the HostTest<T> class.

protected HostTest(bool skipHostFixtureInitialization, T hostFixture, ITestOutputHelper output = null, Type callerType = null)

Parameters

skipHostFixtureInitialization bool

A value indicating whether to skip the host fixture initialization.

hostFixture T

An implementation of the IGenericHostFixture interface.

output ITestOutputHelper

An implementation of the Xunit.ITestOutputHelper interface.

callerType Type

The Type of caller that ends up invoking this instance.

Exceptions

ArgumentNullException

hostFixture is null.