Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR fixes nullability annotations in the MemberAccessor class to improve type safety. The changes remove unnecessary nullable annotations from the FromExpression method and update related test infrastructure to support the new nullability semantics.
Key changes:
- Removed nullable annotations from
MemberAccessor.FromExpressionmethod parameters and return types - Updated test helper
DummyNodeto track member accessors for testing purposes - Added comprehensive tests for WhichNode functionality with proper member accessor handling
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| Source/aweXpect.Core/Core/MemberAccessor.cs | Removed nullable annotations from FromExpression method to fix nullability semantics |
| Tests/aweXpect.Core.Tests/TestHelpers/DummyNode.cs | Added MappingMemberAccessor property and implemented AddMapping/AddAsyncMapping methods for testing |
| Tests/aweXpect.Core.Tests/Core/Nodes/WhichNodeTests.cs | Added comprehensive tests for WhichNode functionality and removed unused StringBuilder variable |
| Source/aweXpect.Core/Core/Nodes/WhichNode.cs | Simplified Equals method by removing member accessor comparisons |
Test Results 14 files - 24 14 suites - 24 3m 46s ⏱️ -51s Results for commit 5e4284d. ± Comparison against base commit d9f4c5a. This pull request removes 1572 and adds 1567 tests. Note that renamed tests count towards both. |
|
🚀 Benchmark ResultsDetails
|
👽 Mutation ResultsaweXpectDetails
The final mutation score is NaN%Coverage Thresholds: high:80 low:60 break:0aweXpect.CoreDetails
The final mutation score is 86.00%Coverage Thresholds: high:80 low:60 break:0 |
|
This is addressed in release v2.23.0. |



This PR fixes nullability annotations in the MemberAccessor class to improve type safety. The changes remove unnecessary nullable annotations from the FromExpression method and update related test infrastructure to support the new nullability semantics.
Key changes:
MemberAccessor.FromExpressionmethod parameters and return typesDummyNodeto track member accessors for testing purposes