EnumerableAssertions<TEnumerable, T>.AllBeOfType Method
Definition
Asserts that all items in the enumerable are of the specified type.
public EnumerableAssertionsChain<IReadOnlyList<TOther>, TOther> AllBeOfType<TOther>()
where TOther : T;
Type Parameters
| Name | Description |
|---|---|
TOther |
The expected type. |
Returns
EnumerableAssertionsChain<IReadOnlyList<TOther>, TOther>
An EnumerableAssertionsChain<TEnumerable, T> for chaining further assertions.