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
objectobjectThe object to be evaluated
Type Parameters
TThe 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
Exceptions
Thrown when the object is of the given type