You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a class implements IDictionary and a custom ContainsKey(TKey1, TKey2), the analyzer does not distinguish between IDictionary.ContainsKey(TKey) and ContainsKey(TKey1, TKey2).
Related to #65
DictionaryShouldContainsKey is suggested, but is not applicable as GenericDictionaryAssertions<TKey, TValue> does not implement ContainKey(TKey1, TKey2).
Versions
Which version of Fluent Assertions Analyzers are you using?
0.11.4
Which .NET runtime and version are you targeting? E.g. .NET framework 4.6.1 or .NET Core 2.0.
net472
The text was updated successfully, but these errors were encountered:
@jnyrup looks like I missed this... lol.
I see this is still an issue, a more generic issue where we are not validating that the arguments match the arguments of the method we think is being used
Description
When a class implements
IDictionary
and a customContainsKey(TKey1, TKey2)
, the analyzer does not distinguish betweenIDictionary.ContainsKey(TKey)
andContainsKey(TKey1, TKey2)
.Related to #65
Complete minimal example reproducing the issue
Expected behavior:
No analyzer should be triggered.
Actual behavior:
DictionaryShouldContainsKey
is suggested, but is not applicable asGenericDictionaryAssertions<TKey, TValue>
does not implementContainKey(TKey1, TKey2)
.Versions
The text was updated successfully, but these errors were encountered: