Skip to content

Collection assert methods should accept IEnumerable collections #6184

@avivanoff

Description

@avivanoff

Describe the bug

Collection assert methods, like Assert.IsEmpty, Assert.HasCount, Assert.Contains, etc. should accept IEnumerable collections.

Steps To Reproduce

  1. Create a test project that targets 3.10 preview MSTest SDK.
  2. Set MSTestAnalysisMode to All.
  3. Add a test that uses one of the aforementioned methods.
  4. Observe the errors.

Sample project.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions