Specification.

IsType<T>(Type) Method

Summary

Creates IsTypeSpecification<T>:

Checks if candidate is compatible with a given type.

Namespace
FluentSpecification
Containing Type
Specification

Syntax

[PublicAPI]
[NotNull]
public static IComplexSpecification<T> IsType<T>(Type expected)

Attributes

Type Description
PublicAPI
NotNull

Type Parameters

Name Description
T Type of candidate to verification.

Parameters

Name Type Description
expected Type Expected type of candidate.

Return Value

Type Description
IComplexSpecification<T> New complex Specification.

Exceptions

Type Description
System.ArgumentNullException Thrown when expected is null.
GitHub