Add new generic collections unit tests - #180
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository: nanoframework/coderabbit/.coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughAdded tests covering ChangesStatic list tests
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested labels: 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
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. Comment |
|
Unit tests are supposed to fail on 1st pass. |
|
@coderabbitai review |
✅ Action performedReview finished.
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@Tests/GenericCollections/ListTests.cs`:
- Around line 1206-1231: Reset the mutable static state used by
List_StaticField_ValueType_Add and List_StaticField_ReferenceType_Add after each
test by clearing StaticListHolder.Numbers and StaticListHolder.Items. Preserve
StaticListHolder’s static field initializer and ensure cleanup runs even when
assertions fail, so retries and reruns start with empty lists.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: nanoframework/coderabbit/.coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 2ffbf01e-adc9-456b-9d5d-ea64ce49caa1
📒 Files selected for processing (1)
Tests/GenericCollections/ListTests.cs
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|



Description
Motivation and Context
How Has This Been Tested?
Screenshots
Types of changes
Checklist: