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
7
* Always use the latest version C#, currently C# 13 features.
9
-
*Files must have CRLF line endings.
8
+
*Never change global.json unless explicitly asked to.
10
9
11
10
## Formatting
12
11
@@ -23,11 +22,15 @@
23
22
* Always use `is null` or `is not null` instead of `== null` or `!= null`.
24
23
* Trust the C# null annotations and don't add null checks when the type system says a value cannot be null.
25
24
26
-
27
25
### Testing
28
26
29
27
* We use xUnit SDK v3 with Microsoft.Testing.Platform (https://learn.microsoft.com/dotnet/core/testing/microsoft-testing-platform-intro)
30
28
* 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".
29
+
* We do not use any mocking framework at the moment.
30
+
* Copy existing style in nearby files for test method names and capitalization.
31
+
32
+
## Running tests
33
+
34
+
(1) Build from the root with `build.sh`.
35
+
(2) If that produces errors, fix those errors and build again. Repeat until the build is successful.
36
+
(3) To then run tests, use a command similar to this `dotnet test tests/Aspire.Seq.Tests/Aspire.Seq.Tests.csproj` (using the path to whatever projects are applicable to the change).
0 commit comments