One of the answers suggest something similar to what I was talking initially: to have separate extension methods names for collections (e. g. CollectionShould, CollectionShouldHave). Actually it is implemented this way in testing frameworks: Assert, CollectionAssert. It looks reasonable as current approach doesn't allow to test collection not as collection but as an object (for example, verifying some collection object properties, not items).
↧