Table of Contents

Method IsNotAssignableFrom

Namespace
Xunit
Assembly
xunit.v3.assert.dll

IsNotAssignableFrom<T>(object?)

Verifies that an object is not of the given type or a derived type.

public static void IsNotAssignableFrom<T>(object? @object)

Parameters

object object

The object to be evaluated

Type Parameters

T

The type the object should not be

Exceptions

Thrown when the object is of the given type

IsNotAssignableFrom(Type, object?)

Verifies that an object is not of the given type or a derived type.

public static void IsNotAssignableFrom(Type expectedType, object? @object)

Parameters

expectedType Type

The type the object should not be

object object

The object to be evaluated

Exceptions

Thrown when the object is of the given type