Skip to content

Update MSTEST0037 to propose Assert.IsNotEmpty for more casesΒ #6312

@drieseng

Description

@drieseng

MSTEST0037 could also propose to use Assert.IsNotEmpty for the following code:

Assert.IsTrue(myList.Count > 0); // Assert.IsGreaterThan is currently proposed
Assert.IsTrue(myList.Count != 0); // Assert.AreNotEqual is currently proposed

Ideally, this would be reported for both generic and non-generic collections.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions