Repository navigation
refactor!: name the collection result types after what they do - #1121
Merged
Merged
Conversation
`Contain` and `BeContainedIn` were pre-rename infinitives for methods now called `Contains` and `IsContainedIn`, and the six types behind them differed only in which proper-relation `Properly()` set. That relation is now a constructor argument, so one type per flavour serves both directions. The dictionary results were named after their continuation member rather than their method, and the last two public types in the root namespace join the others in `aweXpect.Results` and `aweXpect.Options`. Four `ImmutableArray` overloads of `IsEqualTo`/`IsNotEqualTo` returned a `BeContainedIn` result, which offered a `Properly()` that silently reinterpreted the expectation as a proper subset. They now return the plain match result like every other overload.
|
github-actions Bot
added a commit
that referenced
this pull request
Sep 15, 2026
…ypes after what they do (#1121) by Valentin Breuß
github-actions Bot
added a commit
that referenced
this pull request
Sep 15, 2026
…ypes after what they do (#1121) by Valentin Breuß
Contributor
🚀 Benchmark ResultsDetails
|
Contributor
👽 Mutation ResultsaweXpectDetails
The final mutation score is 85.26%Coverage Thresholds: high:80 low:60 break:0aweXpect.CoreDetails
The final mutation score is NaN%Coverage Thresholds: high:80 low:60 break:0 |
This was referenced Oct 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




ContainandBeContainedInwere pre-rename infinitives for methods now calledContainsandIsContainedIn, and the six types behind them differed only in which proper-relationProperly()set. That relation is now a constructor argument, so one type per flavour serves both directions. The dictionary results were named after their continuation member rather than their method, and the last two public types in the root namespace join the others inaweXpect.ResultsandaweXpect.Options.Four
ImmutableArrayoverloads ofIsEqualTo/IsNotEqualToreturned aBeContainedInresult, which offered aProperly()that silently reinterpreted the expectation as a proper subset. They now return the plain match result like every other overload.