1039e75d0c
* Maybe really fixes closures * fornat * add ai generated tests * fix tests * fix tests * added test with correct number of closures? * closures are self contained. don't increment on attached properties * format * MergeClosure should reuse if exists, not just set * add not null on a method
15 lines
555 B
Markdown
15 lines
555 B
Markdown
# Coding standards, domain knowledge, and preferences that AI should follow
|
|
|
|
## C# Coding Standards
|
|
|
|
- Use the csharpier formatter for formatting C# code.
|
|
- Use the .editorconfig file for code style settings.
|
|
- Always use `var` when the type is obvious from the right side of the assignment.
|
|
- Always add braces for `if`, `else`, `for`, `foreach`, `while`, and `do` statements, even if they are single-line statements.
|
|
|
|
## Testing
|
|
|
|
- Use xUnit for unit testing.
|
|
- Use FluentAssertions for assertions in tests.
|
|
- Use Moq for mocking dependencies in tests.
|