testfx
testfx copied to clipboard
Generic overloads for CollectionAssert
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
Hi, thanks for the proposal.
If you're up for it, we are open for community PR's.
Because of some difficulties described in #990, I will not continue to work on this issue and migrate my unit tests to Xunit instead.