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

@@ -140,10 +140,10 @@ public class GetMostConsumedRequestMappingTests
}
[Theory]
[InlineData(0, 0, 1, 1)] // both at the lower boundary
[InlineData(0, -5, 1, 1)] // zero current page with a negative page size
[InlineData(-3, 10, 1, 10)] // negative current page with a valid page size
[InlineData(-2, -7, 1, 1)] // both negative
[InlineData(0, 0, 1, 1)] // Both at the lower boundary.
[InlineData(0, -5, 1, 1)] // Zero current page with a negative page size.
[InlineData(-3, 10, 1, 10)] // Negative current page with a valid page size.
[InlineData(-2, -7, 1, 1)] // Both negative.
public void ToQuery_WhenCurrentPageOrPerPageIsNotPositive_ShouldClampOnlyTheInvalidValue(
int currentPage,
int perPage,
@@ -140,10 +140,10 @@ public class GetRecentlyConsumedRequestMappingTests
}
[Theory]
[InlineData(0, 0, 1, 1)] // both at the lower boundary
[InlineData(0, -5, 1, 1)] // zero current page with a negative page size
[InlineData(-3, 10, 1, 10)] // negative current page with a valid page size
[InlineData(-2, -7, 1, 1)] // both negative
[InlineData(0, 0, 1, 1)] // Both at the lower boundary.
[InlineData(0, -5, 1, 1)] // Zero current page with a negative page size.
[InlineData(-3, 10, 1, 10)] // Negative current page with a valid page size.
[InlineData(-2, -7, 1, 1)] // Both negative.
public void ToQuery_WhenCurrentPageOrPerPageIsNotPositive_ShouldClampOnlyTheInvalidValue(
int currentPage,
int perPage,
@@ -351,8 +351,8 @@ public class MediaConsumptionRecordEntityMappingTests
}
[Theory]
[InlineData("")] // an empty location is not a usable position
[InlineData(" ")] // a whitespace only location is not a usable position
[InlineData("")] // An empty location is not a usable position.
[InlineData(" ")] // A whitespace only location is not a usable position.
public void ToDomainEntity_WhenLocationPositionHasABlankLocation_ShouldReturnInvalidMediaPosition(string location)
{
// Arrange
@@ -43,8 +43,8 @@ public class MediaKindConsumptionStatisticsDtoMappingTests
}
[Theory]
[InlineData(1_500, 1.5)] // half a second survives the conversion
[InlineData(2_000, 2)] // a whole number of seconds stays whole
[InlineData(1_500, 1.5)] // Half a second survives the conversion.
[InlineData(2_000, 2)] // A whole number of seconds stays whole.
public void ToResponse_WhenDurationIsInMilliseconds_ShouldConvertToSeconds(long consumedDurationMilliseconds, double expectedSeconds)
{
// Arrange
@@ -276,8 +276,8 @@ public class MediaResumePointEntityMappingTests
}
[Theory]
[InlineData("")] // an empty location is not a usable position
[InlineData(" ")] // a whitespace only location is not a usable position
[InlineData("")] // An empty location is not a usable position.
[InlineData(" ")] // A whitespace only location is not a usable position.
public void ToDomainEntity_WhenLocationPositionHasABlankLocation_ShouldReturnInvalidMediaPosition(string location)
{
// Arrange
@@ -329,8 +329,8 @@ public class MediaResumePointEntityMappingTests
}
[Theory]
[InlineData(MediaKind.MusicTrack, MediaPositionKind.Location, "chapter-1")] // music tracks are resumed from a time offset
[InlineData(MediaKind.Book, MediaPositionKind.TimeOffset, null)] // books are resumed from a location
[InlineData(MediaKind.MusicTrack, MediaPositionKind.Location, "chapter-1")] // Music tracks are resumed from a time offset.
[InlineData(MediaKind.Book, MediaPositionKind.TimeOffset, null)] // Books are resumed from a location.
public void ToDomainEntity_WhenPositionKindDoesNotMatchTheMediaKindRule_ShouldReturnInvalidMediaPosition(MediaKind mediaKind, MediaPositionKind positionKind, string? location)
{
// Arrange