Table of Contents

Method IsValidTestClass

Namespace
Xunit.v3
Assembly
xunit.v3.core.dll

IsValidTestClass(Type)

Determines if a type should be used for discovery. Can be used to filter out types that are not desirable. The default implementation filters out abstract (non-static) classes.

protected virtual bool IsValidTestClass(Type type)

Parameters

type Type

The type.

Returns

bool

Returns true if the type can contain tests; false, otherwise.