mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 06: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
+10
-10
@@ -119,13 +119,13 @@ public class MusicArtworkServiceTests
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(ArtworkType.Cover, 0, "cover.jpg")] // the front cover uses the bare type name
|
||||
[InlineData(ArtworkType.Back, 0, "back.jpg")] // the back cover uses the bare type name
|
||||
[InlineData(ArtworkType.Medium, 0, "medium.jpg")] // a single medium uses the bare type name
|
||||
[InlineData(ArtworkType.Booklet, 0, "booklet.jpg")] // the first booklet page uses the bare type name
|
||||
[InlineData(ArtworkType.Booklet, 2, "booklet-2.jpg")] // a further booklet page is suffixed with its ordinal
|
||||
[InlineData(ArtworkType.Liner, 1, "liner-1.jpg")] // a liner note page is suffixed with its ordinal
|
||||
[InlineData(ArtworkType.Other, 0, "other.jpg")] // any other type falls back to the generic name
|
||||
[InlineData(ArtworkType.Cover, 0, "cover.jpg")] // The front cover uses the bare type name.
|
||||
[InlineData(ArtworkType.Back, 0, "back.jpg")] // The back cover uses the bare type name.
|
||||
[InlineData(ArtworkType.Medium, 0, "medium.jpg")] // A single medium uses the bare type name.
|
||||
[InlineData(ArtworkType.Booklet, 0, "booklet.jpg")] // The first booklet page uses the bare type name.
|
||||
[InlineData(ArtworkType.Booklet, 2, "booklet-2.jpg")] // A further booklet page is suffixed with its ordinal.
|
||||
[InlineData(ArtworkType.Liner, 1, "liner-1.jpg")] // A liner note page is suffixed with its ordinal.
|
||||
[InlineData(ArtworkType.Other, 0, "other.jpg")] // Any other type falls back to the generic name.
|
||||
public async Task SaveAlbumArtworkAsync_WhenTheArtworkHasAType_ShouldNameTheFileAfterTheTypeAndOrdinal(ArtworkType artworkType, int ordinal, string expectedFileName)
|
||||
{
|
||||
// Arrange
|
||||
@@ -833,9 +833,9 @@ public class MusicArtworkServiceTests
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(null)] // a null path is a no-op
|
||||
[InlineData("")] // an empty path is a no-op
|
||||
[InlineData(" ")] // a whitespace path is a no-op
|
||||
[InlineData(null)] // A null path is a no-op.
|
||||
[InlineData("")] // An empty path is a no-op.
|
||||
[InlineData(" ")] // A whitespace path is a no-op.
|
||||
public void DeleteStoredArtwork_WhenThePathIsMissing_ShouldReturnDeletedWithoutTouchingTheFileSystem(string? artworkRelativePath)
|
||||
{
|
||||
// Act
|
||||
|
||||
+4
-4
@@ -111,8 +111,8 @@ public class TranscodingCacheCoordinatorTests : IDisposable
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(0)] // a zero sized output
|
||||
[InlineData(-1)] // a negative sized output
|
||||
[InlineData(0)] // A zero sized output.
|
||||
[InlineData(-1)] // A negative sized output.
|
||||
public void TryReserve_WhenTheRequestedSizeIsNotPositive_ShouldReturnFalse(int requestedBytes)
|
||||
{
|
||||
// Act
|
||||
@@ -124,8 +124,8 @@ public class TranscodingCacheCoordinatorTests : IDisposable
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(0)] // a zero maximum cache size
|
||||
[InlineData(-1)] // a negative maximum cache size
|
||||
[InlineData(0)] // A zero maximum cache size.
|
||||
[InlineData(-1)] // A negative maximum cache size.
|
||||
public void TryReserve_WhenTheMaximumCacheSizeIsNotPositive_ShouldReturnFalse(int maxCacheBytes)
|
||||
{
|
||||
// Act
|
||||
|
||||
Reference in new issue
Block a user