refactor(rules): split C# guidance by topic
This commit is contained in:
1 parent
d4f45a3320
commit
27db155b85
10 files changed
+118
-117
No files matched your search
@@ -0,0 +1,10 @@
|
||||
# C# Testing and Dependencies
|
||||
|
||||
Apply these rules when changing tests, package references, analyzers, or build diagnostics.
|
||||
|
||||
* Write deterministic behavior-based tests. Avoid coupling assertions to private call order, implementation details, current time, or uncontrolled external services.
|
||||
* Make code testable through clear contracts and dependencies; do not add production hooks or abstractions solely for tests without a concrete need.
|
||||
* Prefer the .NET BCL and existing supported packages over new libraries when they solve the problem adequately.
|
||||
* Keep dependencies minimal, maintained, compatible, and updated through the repository's normal package-management process.
|
||||
* Treat compiler, analyzer, and nullable warnings seriously. Suppress a diagnostic only for a specific, documented reason and narrow the suppression to the affected code.
|
||||
* Run focused tests and analyzers for the changed path; broaden verification when shared behavior or compatibility could be affected.
|
||||
Reference in new issue
Block a user