-
-
Notifications
You must be signed in to change notification settings - Fork 114
Closed
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
Description
Custom comparer support varies significantly across assertion types:
CollectionContainsAssertionacceptsIEqualityComparer<TItem>?in constructorIsEquivalentToAssertionhas.Using(Func<...>)methodDictionaryContainsKeyAssertionhas both.Using(IEqualityComparer<TKey>)and.Using(Func<...>)- Some assertions accept comparer in constructor, others via fluent method
Suggested Fix
Standardize the API:
- Always use
.Using()for fluent API (consistent method name) - Document semantics clearly (does it replace or augment default comparer?)
- Support both
IEqualityComparer<T>andFunc<T, T, bool>overloads uniformly
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed