mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 13:11:10 +00:00
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:
1 parent
727aa33318
commit
057f557791
540 files changed
+3888
-3888
No files matched your search
+4
-4
@@ -217,10 +217,10 @@ public class LocalMusicAlbumArtworkProviderTests : IDisposable
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(null)] // a null path contributes no artwork
|
||||
[InlineData("")] // an empty path contributes no artwork
|
||||
[InlineData(" ")] // a white space path contributes no artwork
|
||||
[InlineData("track.flac")] // a path without a directory part contributes no artwork
|
||||
[InlineData(null)] // A null path contributes no artwork.
|
||||
[InlineData("")] // An empty path contributes no artwork.
|
||||
[InlineData(" ")] // A white space path contributes no artwork.
|
||||
[InlineData("track.flac")] // A path without a directory part contributes no artwork.
|
||||
public async Task GetArtworkAsync_WhenTheTrackPathDoesNotPointToADirectory_ShouldReturnEmpty(string? trackPath)
|
||||
{
|
||||
// Arrange
|
||||
|
||||
+4
-4
@@ -106,10 +106,10 @@ public class LocalMusicArtistArtworkProviderTests : IDisposable
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(null)] // a null path contributes no artwork
|
||||
[InlineData("")] // an empty path contributes no artwork
|
||||
[InlineData(" ")] // a white space path contributes no artwork
|
||||
[InlineData("track.flac")] // a path without a directory part contributes no artwork
|
||||
[InlineData(null)] // A null path contributes no artwork.
|
||||
[InlineData("")] // An empty path contributes no artwork.
|
||||
[InlineData(" ")] // A white space path contributes no artwork.
|
||||
[InlineData("track.flac")] // A path without a directory part contributes no artwork.
|
||||
public async Task GetArtworkAsync_WhenTheTrackPathDoesNotPointToADirectory_ShouldReturnEmpty(string? trackPath)
|
||||
{
|
||||
// Arrange
|
||||
|
||||
+8
-8
@@ -68,9 +68,9 @@ public class LocalMusicArtworkEmbeddedCoverExtractorTests : IDisposable
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(null)] // a null path contributes no cover
|
||||
[InlineData("")] // an empty path contributes no cover
|
||||
[InlineData(" ")] // a white space path contributes no cover
|
||||
[InlineData(null)] // A null path contributes no cover.
|
||||
[InlineData("")] // An empty path contributes no cover.
|
||||
[InlineData(" ")] // A white space path contributes no cover.
|
||||
public void Extract_WhenTheTrackPathIsNullOrEmpty_ShouldReturnNull(string? trackPath)
|
||||
{
|
||||
// Act
|
||||
@@ -101,11 +101,11 @@ public class LocalMusicArtworkEmbeddedCoverExtractorTests : IDisposable
|
||||
[InlineData("image/x-ms-bmp", ".bmp")]
|
||||
[InlineData("image/gif", ".gif")]
|
||||
[InlineData("image/tiff", ".tiff")]
|
||||
[InlineData("IMAGE/PNG", ".png")] // the MIME type is matched without regard to casing
|
||||
[InlineData(" image/png ", ".png")] // the MIME type is trimmed before it is matched
|
||||
[InlineData("application/octet-stream", ".jpg")] // an unknown MIME type falls back to the JPEG extension
|
||||
[InlineData("", ".jpg")] // an empty MIME type falls back to the JPEG extension
|
||||
[InlineData(null, ".jpg")] // a missing MIME type falls back to the JPEG extension
|
||||
[InlineData("IMAGE/PNG", ".png")] // The MIME type is matched without regard to casing.
|
||||
[InlineData(" image/png ", ".png")] // The MIME type is trimmed before it is matched.
|
||||
[InlineData("application/octet-stream", ".jpg")] // An unknown MIME type falls back to the JPEG extension.
|
||||
[InlineData("", ".jpg")] // An empty MIME type falls back to the JPEG extension.
|
||||
[InlineData(null, ".jpg")] // A missing MIME type falls back to the JPEG extension.
|
||||
public void Extract_WhenTheMimeTypeIsProvided_ShouldUseTheMatchingFileExtension(string? mimeType, string expectedExtension)
|
||||
{
|
||||
// Arrange
|
||||
|
||||
+8
-8
@@ -308,10 +308,10 @@ public class LocalMusicArtworkScannerTests : IDisposable
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(null)] // a null path contributes no artwork
|
||||
[InlineData("")] // an empty path contributes no artwork
|
||||
[InlineData(" ")] // a white space path contributes no artwork
|
||||
[InlineData("track.flac")] // a path without a directory part contributes no artwork
|
||||
[InlineData(null)] // A null path contributes no artwork.
|
||||
[InlineData("")] // An empty path contributes no artwork.
|
||||
[InlineData(" ")] // A white space path contributes no artwork.
|
||||
[InlineData("track.flac")] // A path without a directory part contributes no artwork.
|
||||
public void ScanAlbumArtwork_WhenTheTrackPathDoesNotPointToADirectory_ShouldReturnEmpty(string? trackPath)
|
||||
{
|
||||
// Act
|
||||
@@ -449,10 +449,10 @@ public class LocalMusicArtworkScannerTests : IDisposable
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(null)] // a null path contributes no artwork
|
||||
[InlineData("")] // an empty path contributes no artwork
|
||||
[InlineData(" ")] // a white space path contributes no artwork
|
||||
[InlineData("track.flac")] // a path without a directory part contributes no artwork
|
||||
[InlineData(null)] // A null path contributes no artwork.
|
||||
[InlineData("")] // An empty path contributes no artwork.
|
||||
[InlineData(" ")] // A white space path contributes no artwork.
|
||||
[InlineData("track.flac")] // A path without a directory part contributes no artwork.
|
||||
public void ScanArtistArtwork_WhenTheTrackPathDoesNotPointToADirectory_ShouldReturnEmpty(string? trackPath)
|
||||
{
|
||||
// Act
|
||||
|
||||
Reference in new issue
Block a user