Formats code comments as sentences in the tests.

Capitalizes the first word and adds the terminal period in the unit, integration and security tests. The AAA markers stay bare, the TODO bodies stay lowercase, and no assertion, payload, expected status code or test signature changes.
This commit is contained in:
BinaryAlley committed 2026-11-16 18:17:29 +02:00
1 parent 727aa33318
commit 057f557791
540 files changed
+3888 -3888

No files matched your search

@@ -66,9 +66,9 @@ public class DeleteThemeEndpointTests
}
[Theory]
[InlineData(null)] // missing theme id
[InlineData("")] // empty theme id
[InlineData(" ")] // whitespace theme id
[InlineData(null)] // Missing theme id.
[InlineData("")] // Empty theme id.
[InlineData(" ")] // Whitespace theme id.
public async Task ExecuteAsync_WhenThemeIdIsBlank_ShouldReturnProblemWithBadRequest(string? themeId)
{
// Act
@@ -72,9 +72,9 @@ public class DownloadThemeEndpointTests
}
[Theory]
[InlineData(null)] // missing theme id
[InlineData("")] // empty theme id
[InlineData(" ")] // whitespace theme id
[InlineData(null)] // Missing theme id.
[InlineData("")] // Empty theme id.
[InlineData(" ")] // Whitespace theme id.
public async Task ExecuteAsync_WhenThemeIdIsBlank_ShouldReturnProblemWithBadRequest(string? themeId)
{
// Act
@@ -90,14 +90,14 @@ public class InstallThemeEndpointTests
private void ConfigureFormWithArchive(byte[] content, string fileName)
{
// the stream stays open for the duration of the test, since the endpoint reads it through the form file during execution
// The stream stays open for the duration of the test, since the endpoint reads it through the form file during execution.
MemoryStream archiveStream = new(content);
IFormFile formFile = new FormFile(archiveStream, 0, content.Length, "archive", fileName);
FormFileCollection files = [formFile];
IFormCollection form = new FormCollection([], files);
_sut.HttpContext.Request.ContentType = "multipart/form-data; boundary=----test";
// a real FormFeature is used instead of a substitute, because the endpoint execution reads the form through the
// request machinery, which would bypass a mocked feature and parse the (empty) request body
// A real FormFeature is used instead of a substitute, because the endpoint execution reads the form through the
// request machinery, which would bypass a mocked feature and parse the (empty) request body.
_sut.HttpContext.Features.Set<IFormFeature>(new FormFeature(form));
}
}
@@ -69,9 +69,9 @@ public class RestoreThemeEndpointTests
}
[Theory]
[InlineData(null)] // missing theme id
[InlineData("")] // empty theme id
[InlineData(" ")] // whitespace theme id
[InlineData(null)] // Missing theme id.
[InlineData("")] // Empty theme id.
[InlineData(" ")] // Whitespace theme id.
public async Task ExecuteAsync_WhenThemeIdIsBlank_ShouldReturnProblemWithBadRequest(string? themeId)
{
// Act
@@ -62,9 +62,9 @@ public class SetCurrentThemeEndpointTests
}
[Theory]
[InlineData(null)] // missing theme id
[InlineData("")] // empty theme id
[InlineData(" ")] // whitespace theme id
[InlineData(null)] // Missing theme id.
[InlineData("")] // Empty theme id.
[InlineData(" ")] // Whitespace theme id.
public async Task ExecuteAsync_WhenThemeIdIsBlank_ShouldReturnProblemWithBadRequest(string? themeId)
{
// Act