Support SatisfyRespectively for string collections#1201
Support SatisfyRespectively for string collections#1201jnyrup merged 1 commit intofluentassertions:masterfrom
SatisfyRespectively for string collections#1201Conversation
By moving `SatisfyRespectively` from `GenericCollectionAssertions` to `SelfReferencingCollectionAssertions` we enable string collections to re-use the same assertions. To the best of my knowledge, this should not be a breaking change. * Moving members to parent class is not a breaking change * The return type has changed from `AndConstraint<GenericCollectionAssertions<T>>` to `AndConstraint<TAssertions>`, but for `GenericCollectionAssertions<T>` `TAssertions` *is* exactly `GenericCollectionAssertions<T>`.
Isn't changing the return type always a breaking change? |
|
Hmm... You're probably right. |
|
Pulling |
|
The return type of
I asked the question on SO and got an answer from Eric Lippert himself. |
By moving
SatisfyRespectivelyfromGenericCollectionAssertionstoSelfReferencingCollectionAssertionswe enable string collections to re-use the same assertions.To the best of my knowledge, this should not be a breaking change.
Moving members to parent class is not a breaking change
The return type has changed from
AndConstraint<GenericCollectionAssertions<T>>toAndConstraint<TAssertions>, but forGenericCollectionAssertions<T>TAssertionsis exactlyGenericCollectionAssertions<T>.This fixes #1188