testfx icon indicating copy to clipboard operation
testfx copied to clipboard

Generic overloads for CollectionAssert

Open daniel-lerch opened this issue 2 years ago • 2 comments

Motivation

I have been using CollectionAssert for quite some time but when I want to check whether the contents of a ReadOnlyCollection<T> match my expectation a cannot use CollectionAssert because many generic collection interfaces do not inherit from ICollection.

Proposal

Add new generic overloads of all methods to take IReadOnlyCollection<T> or IEnumerable<T> instead of ICollection.

AB#2112229

daniel-lerch avatar Sep 29 '21 23:09 daniel-lerch

Hi, thanks for the proposal.

If you're up for it, we are open for community PR's.

Haplois avatar Oct 01 '21 00:10 Haplois

Because of some difficulties described in #990, I will not continue to work on this issue and migrate my unit tests to Xunit instead.

daniel-lerch avatar Nov 18 '21 14:11 daniel-lerch