Skip to content

Possible false positive for proper assert method analyzer #7343

@Youssef1313

Description

@Youssef1313

When detecting Assert.IsTrue(expr > expr2) and suggest using Assert.IsGreaterThan and similar APIs, we should probably verify that the types implement IComparable before suggesting the fix. We also need to add test for nullable value types (e.g, TimeSpan?)

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions