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
An ObjectAssertionsChain<T> for the value cast to TOther.