HasValidState Method
Definition
- Namespace
- Codebelt.Extensions.Xunit.Hosting
- Assemblies
- Codebelt.Extensions.Xunit.Hosting.dll
HasValidState<TEntryPoint>(IApplicationFixture<TEntryPoint>)
Determines whether the specified IApplicationFixture<TEntryPoint> has a valid state.
public static bool HasValidState<TEntryPoint>(this IApplicationFixture<TEntryPoint> hostFixture) where TEntryPoint : class
Parameters
hostFixtureIApplicationFixture<TEntryPoint>The IApplicationFixture<TEntryPoint> to check.
Returns
- bool
trueif the specified IApplicationFixture<TEntryPoint> has a valid state; otherwise,false.
Type Parameters
TEntryPointA type in the entry point assembly of the application.
Remarks
A valid state is defined as having non-null values for the following properties: Host, ConfigureCallback and ConfigureHostCallback.