Skip to content

ObjectAssertions<T>.BeOfType Method

Definition

Asserts that the value is assignable to the specified type.

public ObjectAssertionsChain<TOther> BeOfType<TOther>();

Type Parameters

Name Description
TOther The expected type.

Returns

ObjectAssertionsChain<TOther>

An ObjectAssertionsChain<T> for the value cast to TOther.