You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR introduces a source generator to simplify the creation of negated character expectations in the aweXpect assertion library. The key change is replacing manual implementation of char validation methods with source generator attributes that automatically create both positive and negative assertions.
Key changes:
Introduces aweXpect.SourceGenerators project with attribute-based code generation for expectations
Converts existing char validation methods (IsALetter, IsANumber, IsAnAsciiLetter, IsWhiteSpace) to use source generation
Adds corresponding test files for the new negated expectations (IsNotALetter, IsNotANumber, etc.)
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a source generator to simplify the creation of negated character expectations in the aweXpect assertion library. The key change is replacing manual implementation of char validation methods with source generator attributes that automatically create both positive and negative assertions.
Introduces aweXpect.SourceGenerators project with attribute-based code generation for expectations
Converts existing char validation methods (IsALetter, IsANumber, IsAnAsciiLetter, IsWhiteSpace) to use source generation
Adds corresponding test files for the new negated expectations (IsNotALetter, IsNotANumber, etc.)
Reviewed Changes
Copilot reviewed 19 out of 19 changed files in this pull request and generated no comments.
Show a summary per file
File
Description
aweXpect.sln
Adds the new SourceGenerators project to the solution
Source/aweXpect.SourceGenerators/*
Implements source generator infrastructure with attribute-based expectation creation
Source/aweXpect/That/Chars/*
Converts manual char validation implementations to source generator attributes
Tests/aweXpect.Tests/Chars/*
Adds comprehensive test coverage for new negated char expectations
Tests/aweXpect.Api.Tests/Expected/*
Updates API surface documentation to reflect new public methods
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
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.
This PR introduces a source generator to simplify the creation of negated character expectations in the aweXpect assertion library. The key change is replacing manual implementation of char validation methods with source generator attributes that automatically create both positive and negative assertions.
Key changes:
aweXpect.SourceGeneratorsproject with attribute-based code generation for expectationsIsALetter,IsANumber,IsAnAsciiLetter,IsWhiteSpace) to use source generationIsNotALetter,IsNotANumber, etc.)