Summary
Composes self Specification
with EqualSpecification<T>
negation:
Checks if candidate object is not equal to expected object.
Syntax
[PublicAPI]
[NotNull]
public static IComplexSpecification<T> NotEqual<T>(this ICompositeSpecification<T> self, T notExpected, IEqualityComparer<T> comparer = null)
Attributes
Type |
Description |
PublicAPI |
|
NotNull |
|
Type Parameters
Name |
Description |
T |
Type of candidate. |
Parameters
Name |
Type |
Description |
self |
ICompositeSpecification<T> |
Self specification. |
notExpected |
T |
Not expected object. |
comparer |
IEqualityComparer<T> |
Equality comparer. |
Return Value
Exceptions
Type |
Description |
System.ArgumentNullException |
Thrown when self is null. |