Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Remove Contract.Requires from immutable collections tests #11620

Merged
merged 1 commit into from
Sep 12, 2016

Conversation

stephentoub
Copy link
Member

@stephentoub stephentoub commented Sep 11, 2016

Without the contract rewriter, Contract.Requires is a nop. #11600 removed most of its usage from corefx, but it's still used in a bunch of places throughout the immutable collections tests. This changes those to be either xunit asserts or Debug.Asserts, depending on usage.

Fixes https://github.com/dotnet/corefx/issues/11596
cc: @benaadams

Without the contract rewriter, Contract.Requires is a nop.  It's used in a bunch of places throughout the immutable collections tests, though... this changes those to be either xunit asserts or Debug.Asserts, depending on usage.
@benaadams
Copy link
Member

LGTM

@stephentoub stephentoub merged commit 236f5cd into dotnet:master Sep 12, 2016
@stephentoub stephentoub deleted the remove_contract_requires branch October 13, 2016 16:34
@karelz karelz modified the milestone: 1.2.0 Dec 3, 2016
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…ct_requires

Remove Contract.Requires from immutable collections tests

Commit migrated from dotnet/corefx@236f5cd
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants