Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.Should().HaveCount(1) for Dictionary cannot be converted to .Should().ContainSingle() #77

Closed
FantasyTeddy opened this issue Aug 17, 2018 · 1 comment · Fixed by #79
Closed
Labels

Comments

@FantasyTeddy
Copy link

Description

The analyzer reports this piece of code:

Dictionary<string, object> dict = new Dictionary<string, object>();
dict.Should().HaveCount(1);

and wants me to convert it to .Should().ContainSingle() but this is not supported for the Dictionary type.

Versions

  • FluentAssertions.Analyzers 0.11.3
  • .NET Framework 4.6.1
@Meir017 Meir017 added the bug label Aug 17, 2018
Meir017 added a commit that referenced this issue Aug 17, 2018
@Meir017 Meir017 mentioned this issue Aug 17, 2018
Meir017 added a commit that referenced this issue Aug 17, 2018
@Meir017
Copy link
Member

Meir017 commented Aug 17, 2018

@FantasyTeddy just released 0.11.4

Meir017 added a commit that referenced this issue Aug 14, 2023
Meir017 added a commit that referenced this issue Aug 14, 2023
…naries (#208)

* enable collection analyzers for any collection including dictionaries

* #77 is no longer correct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants