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

@@ -96,8 +96,8 @@ public class ExceptionUtilitiesTests
List<Exception> result = [.. exception.GetInnerExceptions()];
// Assert
// the aggregate exception itself, its inner exceptions and their inners are traversed, and the first inner exception
// is also reachable through the regular InnerException chain, so it is yielded twice
// The aggregate exception itself, its inner exceptions and their inners are traversed, and the first inner exception
// is also reachable through the regular InnerException chain, so it is yielded twice.
Assert.Equal(6, result.Count);
Assert.Contains(result, inner => inner is AggregateException);
Assert.Equal(2, result.Count(inner => inner.Message == "first-inner"));
@@ -13,18 +13,18 @@ namespace Lumina.Infrastructure.UnitTests.Common.Utilities;
public class ImageTypeUtilitiesTests
{
[Theory]
[InlineData(ImageType.BMP, "bmp")] // bitmap image
[InlineData(ImageType.GIF, "gif")] // graphics interchange format
[InlineData(ImageType.PNG, "png")] // portable network graphics
[InlineData(ImageType.TIFF, "tiff")] // tagged image file format
[InlineData(ImageType.PICT, "pct")] // macintosh picture
[InlineData(ImageType.ICO, "ico")] // icon format
[InlineData(ImageType.PSD, "psd")] // photoshop document
[InlineData(ImageType.JPEG2000, "jp2")] // jpeg 2000
[InlineData(ImageType.AVIF, "avif")] // av1 image file format
[InlineData(ImageType.WEBP, "webp")] // web picture format
[InlineData(ImageType.TGA, "tga")] // truevision tga
[InlineData(ImageType.SVG, "svg")] // scalable vector graphics
[InlineData(ImageType.BMP, "bmp")] // Bitmap image.
[InlineData(ImageType.GIF, "gif")] // Graphics interchange format.
[InlineData(ImageType.PNG, "png")] // Portable network graphics.
[InlineData(ImageType.TIFF, "tiff")] // Tagged image file format.
[InlineData(ImageType.PICT, "pct")] // Macintosh picture.
[InlineData(ImageType.ICO, "ico")] // Icon format.
[InlineData(ImageType.PSD, "psd")] // Photoshop document.
[InlineData(ImageType.JPEG2000, "jp2")] // JPEG 2000.
[InlineData(ImageType.AVIF, "avif")] // AV1 image file format.
[InlineData(ImageType.WEBP, "webp")] // Web picture format.
[InlineData(ImageType.TGA, "tga")] // Truevision TGA.
[InlineData(ImageType.SVG, "svg")] // Scalable vector graphics.
public void ToFileExtension_WhenTypeIsRecognized_ShouldReturnConventionalExtension(ImageType imageType, string expectedExtension)
{
// Act
@@ -35,9 +35,9 @@ public class ImageTypeUtilitiesTests
}
[Theory]
[InlineData(ImageType.JPEG)] // joint photographic experts group
[InlineData(ImageType.JPEG_CANON)] // canon-specific jpeg
[InlineData(ImageType.JPEG_UNKNOWN)] // unknown jpeg
[InlineData(ImageType.JPEG)] // Joint photographic experts group.
[InlineData(ImageType.JPEG_CANON)] // Canon-specific JPEG.
[InlineData(ImageType.JPEG_UNKNOWN)] // Unknown JPEG.
public void ToFileExtension_WhenTypeIsAnyJpeg_ShouldReturnJpg(ImageType imageType)
{
// Act