Table of Contents

HasValidState Method

Definition

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

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

hostFixture IApplicationFixture<TEntryPoint>

The IApplicationFixture<TEntryPoint> to check.

Returns

bool

true if the specified IApplicationFixture<TEntryPoint> has a valid state; otherwise, false.

Type Parameters

TEntryPoint

A 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.