Repository navigation
refactor: generate the built-in predicate expectations with [GenerateExpectation] - #1831
Merged
Merged
Conversation
vbreuss
force-pushed
the
refactor/use-generate-expectation
branch
from
October 15, 2026 03:51
546b736 to
43207a3
Compare
vbreuss
force-pushed
the
refactor/use-generate-expectation
branch
from
October 15, 2026 18:15
43207a3 to
b19b8d3
Compare
…eExpectation]` The internal `CreateExpectationOn` generator duplicated what the public generator in `aweXpect.Core` now does, so the char, Guid, string and TimeSpan expectations move to it and the internal one is removed. The analyzers of `aweXpect.Core` now also reach the consumers of `aweXpect`, so the generator runs in a test project that only references `aweXpect`. - the generated API, its null guarantees and its documentation are unchanged - needs a released `aweXpect.Core` that contains the generator: until its version is bumped in `Directory.Packages.props`, only the Debug build compiles
vbreuss
force-pushed
the
refactor/use-generate-expectation
branch
from
October 15, 2026 18:27
b19b8d3 to
cb20008
Compare
…looking using The `using aweXpect.Core;` only existed so that the crefs in the attribute documentation resolve in the generated file, so removing it as unused would have broken them.
|
github-actions Bot
added a commit
that referenced
this pull request
Oct 15, 2026
…te expectations with `[GenerateExpectation]` (#1831) by Valentin Breuß
github-actions Bot
added a commit
that referenced
this pull request
Oct 15, 2026
…te expectations with `[GenerateExpectation]` (#1831) by Valentin Breuß
Contributor
🚀 Benchmark ResultsDetails
|
Contributor
|
This is addressed in release v3.2.0. |
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.



The internal
CreateExpectationOngenerator duplicated what the public generator inaweXpect.Corenow does, so the char, Guid, string and TimeSpan expectations move to it and the internal one is removed. The analyzers ofaweXpect.Corenow also reach the consumers ofaweXpect, so the generator runs in a test project that only referencesaweXpect.