Summary
Creates EqualSpecification<T>
:
Checks if candidate object is equal to expected object.
- Namespace
- FluentSpecification
- Containing Type
- Specification
Syntax
[PublicAPI]
[NotNull]
public static IComplexSpecification<T> Equal<T>(T expected, IEqualityComparer<T> comparer = null)
Attributes
Type | Description |
---|---|
PublicAPI | |
NotNull |
Type Parameters
Name | Description |
---|---|
T | Type of candidate. |
Parameters
Name | Type | Description |
---|---|---|
expected | T | Expected object. |
comparer | IEqualityComparer |
Equality comparer. |
Return Value
Type | Description |
---|---|
I |
New complex Specification . |