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

@@ -392,13 +392,13 @@ public class Id3TagMapperTests
}
[Theory]
[InlineData("eng", "en", "English")] // a three letter code maps to the neutral culture
[InlineData("deu", "de", "German")] // another three letter code maps to the neutral culture
[InlineData("en", "en", "English")] // a two letter code maps too
[InlineData("zxx", "zxx", "No linguistic content")] // the special code of MusicBrainz
[InlineData("mul", "mul", "Multiple languages")] // the special code of MusicBrainz
[InlineData("und", "und", "Undetermined")] // the special code of MusicBrainz
[InlineData("eng/ara", "en", "English")] // only the first code of a multi language tag is used
[InlineData("eng", "en", "English")] // A three letter code maps to the neutral culture.
[InlineData("deu", "de", "German")] // Another three letter code maps to the neutral culture.
[InlineData("en", "en", "English")] // A two letter code maps too.
[InlineData("zxx", "zxx", "No linguistic content")] // The special code of MusicBrainz.
[InlineData("mul", "mul", "Multiple languages")] // The special code of MusicBrainz.
[InlineData("und", "und", "Undetermined")] // The special code of MusicBrainz.
[InlineData("eng/ara", "en", "English")] // Only the first code of a multi language tag is used.
public void MapAlbum_WhenTheLanguageCodeIsPresent_ShouldMapIt(string language, string expectedCode, string expectedName)
{
// Arrange
@@ -539,7 +539,7 @@ public class Id3TagMapperTests
[InlineData("minidisc", MusicMediaFormat.MiniDisc)]
[InlineData("8cm cd", MusicMediaFormat.Cm8CD)]
[InlineData("dat", MusicMediaFormat.DAT)]
[InlineData("vinyl disc", MusicMediaFormat.VinylDisc)] // parsed through the normalized fallback
[InlineData("vinyl disc", MusicMediaFormat.VinylDisc)] // Parsed through the normalized fallback.
[InlineData("other", MusicMediaFormat.Other)]
public void MapAlbum_WhenTheMediaFormatIsKnown_ShouldMapIt(string mediaFormat, MusicMediaFormat expected)
{
@@ -955,7 +955,7 @@ public class Id3TagMapperTests
[InlineData("Fm", MusicKey.FMinor)]
[InlineData("G", MusicKey.GMajor)]
[InlineData("Gm", MusicKey.GMinor)]
[InlineData("E\u266d", MusicKey.DSharpMajor)] // the flat sign is normalized to the sharp equivalent
[InlineData("E\u266d", MusicKey.DSharpMajor)] // The flat sign is normalized to the sharp equivalent.
[InlineData("F# major", MusicKey.FSharpMajor)]
[InlineData("Gb", MusicKey.FSharpMajor)]
[InlineData("G#m", MusicKey.GSharpMinor)]
@@ -12,12 +12,12 @@ namespace Lumina.Plugins.ID3.UnitTests.Core.Tags;
public class AudioContainerResolverTests
{
[Theory]
[InlineData(null, null)] // an absent mime type leaves the container unrecognized
[InlineData("", null)] // an empty mime type leaves the container unrecognized
[InlineData(" ", null)] // a blank mime type leaves the container unrecognized
[InlineData("taglib/wav", "WAV")] // the taglib prefix is dropped and the container is upper cased
[InlineData("taglib/png", "PNG")] // a container the resolver has no dedicated parser for still yields its name
[InlineData("audio/x-wavpack", "X-WAVPACK")] // the last segment of a standard mime type names the container
[InlineData(null, null)] // An absent mime type leaves the container unrecognized.
[InlineData("", null)] // An empty mime type leaves the container unrecognized.
[InlineData(" ", null)] // A blank mime type leaves the container unrecognized.
[InlineData("taglib/wav", "WAV")] // The taglib prefix is dropped and the container is upper cased.
[InlineData("taglib/png", "PNG")] // A container the resolver has no dedicated parser for still yields its name.
[InlineData("audio/x-wavpack", "X-WAVPACK")] // The last segment of a standard mime type names the container.
public void ResolveFromMimeType_WhenCalled_ShouldReturnTheContainerNamedByTheMimeType(string? mimeType, string? expectedContainer)
{
// Act
@@ -37,8 +37,8 @@ public class Id3TagReaderTests : IDisposable
}
[Theory]
[InlineData("")] // an empty path
[InlineData(" ")] // a white space path
[InlineData("")] // An empty path.
[InlineData(" ")] // A white space path.
public void Read_WhenPathIsEmptyOrWhiteSpace_ShouldReturnNull(string path)
{
// Act