You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Make only high confidence suggestions when reviewing code changes.
8
+
* Always use the latest version C#, currently C# 13 features.
9
+
* Files must have CRLF line endings.
10
+
11
+
## Formatting
12
+
13
+
* Apply code-formatting style defined in `.editorconfig`.
14
+
* Prefer file-scoped namespace declarations and single-line using directives.
15
+
* Insert a newline before the opening curly brace of any code block (e.g., after `if`, `for`, `while`, `foreach`, `using`, `try`, etc.).
16
+
* Ensure that the final return statement of a method is on its own line.
17
+
* Use pattern matching and switch expressions wherever possible.
18
+
* Use `nameof` instead of string literals when referring to member names.
19
+
20
+
### Nullable Reference Types
21
+
22
+
* Declare variables non-nullable, and check for `null` at entry points.
23
+
* Always use `is null` or `is not null` instead of `== null` or `!= null`.
24
+
* Trust the C# null annotations and don't add null checks when the type system says a value cannot be null.
25
+
26
+
27
+
### Testing
28
+
29
+
* We use xUnit SDK v3 with Microsoft.Testing.Platform (https://learn.microsoft.com/dotnet/core/testing/microsoft-testing-platform-intro)
30
+
* Do not emit "Act", "Arrange" or "Assert" comments.
31
+
* We do not use any mocking framework at the moment. Use NSubstitute, if necessary. Never use Moq.
32
+
* Use "snake_case" for test method names but keep the original method under test intact.
33
+
For example: when adding a test for methond "MethondToTest" instead of "MethondToTest_ShouldReturnSummarisedIssues" use "MethondToTest_should_return_summarised_issues".
Copy file name to clipboardExpand all lines: tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureStorageExtensionsTests.ResourceNamesBicepValid.verified.bicep
0 commit comments