runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Specification tests for collection interfaces

Open eatdrinksleepcode opened this issue 11 years ago • 5 comments

In the last API review, @KrzysztofCwalina mentioned that it would be nice to have a set of tests that can serve as specifications for the expected behavior of the built-in collection interfaces. These tests could be used by people creating types which implement these interfaces to ensure that their implementations match the specification.

I love this idea, and would love to help create the suite. Is this something that the community can engage on?

eatdrinksleepcode avatar Jan 22 '15 23:01 eatdrinksleepcode

@eatdrinksleepcode, I marked this as up for grabs. Feel free to take it, if you like to get involved.

KrzysztofCwalina avatar May 21 '15 16:05 KrzysztofCwalina

@ianhays has this been fixed by your work in the System.Collections.Tests common test helpers? If not, what remains?

hughbe avatar May 07 '16 10:05 hughbe

Thanks @hughbe, I didn't see this issue but it sounds like I resolved it already with https://github.com/dotnet/corefx/pull/5764.

@eatdrinksleepcode check out the test files at https://github.com/dotnet/corefx/tree/master/src/Common/tests/System/Collections. Absolutely feel free to add tests if you see gaps in the generic collections tests there :) My goal in adding them was to create a set of interface-level tests that could be used by any class that implemented them whether they be built-in classes or user-made classes.

ianhays avatar May 07 '16 13:05 ianhays

Ah good to know. Should this be closed then?

hughbe avatar May 07 '16 14:05 hughbe

Yeah probably. I'll go ahead and close it and @eatdrinksleepcode can comment/re-open if he had something else in mind.

ianhays avatar May 07 '16 14:05 ianhays