Repository navigation
Add tests for explicit interface calls on generic base - #321
Conversation
- Add tests for the scenario of Home 1947 for bool, int, string and a struct. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 9 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
@coderabbitai review |
Action not completed
|
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified in the regression-test additions and project inclusion.
No open issues 🎉
What changed in this PR
Adds regression coverage for explicit non-generic interface calls on an abstract generic base class in the nanoFramework BCL test suite, addressing the scenario in Home#1947 without changing runtime or library code.
Changes:
- Adds 10 tests covering
bool,int,string, and a small struct. - Checks value round-trips, rejection of wrong types and
null, and replacement of previously stored values. - Includes the new tests in the existing reflection test project.
| File | Description |
|---|---|
| Tests/NFUnitTestSystemLibReflection3/UnitTestExplicitInterfaceOnGenericBaseTests.cs | Adds generic-base explicit interface regression tests. |
| Tests/NFUnitTestSystemLibReflection3/NFUnitTestSystemLibReflection3.nfproj | Includes the new test source in compilation. |
Review effort: Balanced
|
@coderabbitai approve |
Action performed
|
|



Description
value is Tand(T)GetValue()in the base.bool,int,stringand a small struct: set through the interface then get returns the boxed value, a wrong type andnullthrowArgumentException.Motivation and Context
How Has This Been Tested?
NFUnitTestSystemLibReflection3on the netcore nanoCLR (develop1744d9808): 147 passed, 0 failed, including the 10 new tests.Screenshots
Types of changes
Checklist