-
-
Notifications
You must be signed in to change notification settings - Fork 116
Closed
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Description
The assertion analyzers check for missing await, constants, dynamic usage, and mixed And/Or operators. Missing rules for common mistakes:
- GenerateAssertionAnalyzer doesn't catch
Task(non-generic) return types — should requireTask<bool>orTask<AssertionResult> - No sync-blocking detection —
.Resultor.Wait()on assertion expressions - No assertion chain completeness —
Andwithout a following assertion - No assignment detection — using
=instead of assertion inAssert.That()
Suggested Fix
Add new analyzer rules for each case above, with appropriate diagnostic IDs and fix suggestions.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers