sonar-dotnet icon indicating copy to clipboard operation
sonar-dotnet copied to clipboard

Introduce fluent assertions for program state

Open costin-zaharia-sonarsource opened this issue 2 years ago • 3 comments

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

sonarqubecloud[bot] avatar Jun 27 '22 08:06 sonarqubecloud[bot]

I think we shouldn't add HaveCount inside, it should be called separately. Also with the first approach, we lose the option to chain methods which is very useful. The reason why I've preferred to go for the extended version is the flexibility it provides to add additional checks and updating the error messages.

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

sonarqubecloud[bot] avatar Jun 27 '22 08:06 sonarqubecloud[bot]