Skip to content

Assert.ContainsSingle should accept non-generic collections #6732

@AtolagbeMuiz

Description

@AtolagbeMuiz

Summary

Assert.ContainsSingle should accept non-generic IEnumerable collections like ArrayList, Stacks e.t.c. just the way Assert.Contains and Assert.DoesNotContain accept non-generic collection overload.

Current Behaviour

Assert.ContainsSingle throws compile time error because it only accepts generic collections.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: AssertionArea: MSTestIssues with MSTest that are not specific to more refined area (e.g. analyzers or assertions)

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions