HasValidState Method
Definition
- Namespace
- Codebelt.Extensions.Xunit.Hosting
- Assemblies
- Codebelt.Extensions.Xunit.Hosting.dll
HasValidState(IGenericHostFixture)
Determines whether the specified IGenericHostFixture has a valid state.
public static bool HasValidState(this IGenericHostFixture hostFixture)
Parameters
hostFixtureIGenericHostFixtureThe IGenericHostFixture to check.
Returns
- bool
trueif the specified IGenericHostFixture has a valid state; otherwise,false.
Remarks
A valid state is defined as having non-null values for the following properties: ConfigureServicesCallback and ConfigureHostCallback.