Table of Contents

HasTypes Method

Definition

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

HasTypes(Type, params Type[])

Determines whether the specified type contains one or more of the specified target types.

protected static bool HasTypes(Type type, params Type[] types)

Parameters

type Type

The Type to validate.

types Type[]

The target types to be matched against.

Returns

bool

true if the type contains one or more of the specified target types; otherwise, false.