Summary
Creates IsTypeSpecification<T>
negation:
Checks if candidate is not compatible with a given type.
- Namespace
- FluentSpecification
- Containing Type
- Specification
Syntax
[PublicAPI]
[NotNull]
public static IComplexSpecification<T> IsNotType<T>(Type notExpected)
Attributes
Type | Description |
---|---|
PublicAPI | |
NotNull |
Type Parameters
Name | Description |
---|---|
T | Type of candidate to verification. |
Parameters
Name | Type | Description |
---|---|---|
notExpected | Type | Not expected type of candidate. |
Return Value
Type | Description |
---|---|
I |
New complex Specification . |
Exceptions
Type | Description |
---|---|
System.ArgumentNullException | Thrown when notExpected is null. |