Tidies the remaining test assertions and shared fixtures

This commit is contained in:
BinaryAlley committed 2026-09-27 23:05:11 +03:00
1 parent 4d96fe10dd
commit 385e962392
16 files changed
+938 -20

No files matched your search

@@ -35,7 +35,7 @@ public class DeleteTrackCommandValidatorTests
[Theory]
[InlineData(null)] // missing route value
[InlineData("")] // empty route value
[InlineData(" ")] // whitespace route value, which the format rule skips but the not empty rule rejects
[InlineData(" ")] // whitespace route value, which both the not empty rule and the format rule reject
[InlineData("not-a-library-guid")] // non-Guid route value
[InlineData("00000000-0000-0000-0000-000000000000")] // empty Guid route value
public void Validate_WhenLibraryIdIsEmptyOrInvalid_ShouldHaveValidationError(string? libraryId)
@@ -53,7 +53,7 @@ public class DeleteTrackCommandValidatorTests
[Theory]
[InlineData(null)] // missing route value
[InlineData("")] // empty route value
[InlineData(" ")] // whitespace route value, which the format rule skips but the not empty rule rejects
[InlineData(" ")] // whitespace route value, which both the not empty rule and the format rule reject
[InlineData("not-an-artist-guid")] // non-Guid route value
[InlineData("00000000-0000-0000-0000-000000000000")] // empty Guid route value
public void Validate_WhenArtistIdIsEmptyOrInvalid_ShouldHaveValidationError(string? artistId)
@@ -71,7 +71,7 @@ public class DeleteTrackCommandValidatorTests
[Theory]
[InlineData(null)] // missing route value
[InlineData("")] // empty route value
[InlineData(" ")] // whitespace route value, which the format rule skips but the not empty rule rejects
[InlineData(" ")] // whitespace route value, which both the not empty rule and the format rule reject
[InlineData("not-an-album-guid")] // non-Guid route value
[InlineData("00000000-0000-0000-0000-000000000000")] // empty Guid route value
public void Validate_WhenAlbumIdIsEmptyOrInvalid_ShouldHaveValidationError(string? albumId)
@@ -89,7 +89,7 @@ public class DeleteTrackCommandValidatorTests
[Theory]
[InlineData(null)] // missing route value
[InlineData("")] // empty route value
[InlineData(" ")] // whitespace route value, which the format rule skips but the not empty rule rejects
[InlineData(" ")] // whitespace route value, which both the not empty rule and the format rule reject
[InlineData("not-a-track-guid")] // non-Guid route value
[InlineData("00000000-0000-0000-0000-000000000000")] // empty Guid route value
public void Validate_WhenTrackIdIsEmptyOrInvalid_ShouldHaveValidationError(string? trackId)
@@ -38,7 +38,7 @@ public class GetTrackQueryValidatorTests
[Theory]
[InlineData(null)] // missing route value
[InlineData("")] // empty route value
[InlineData(" ")] // whitespace route value, which the format rule skips but the not empty rule rejects
[InlineData(" ")] // whitespace route value, which both the not empty rule and the format rule reject
[InlineData("not-a-library-guid")] // non-Guid route value
[InlineData("00000000-0000-0000-0000-000000000000")] // empty Guid route value
public void Validate_WhenLibraryIdIsEmptyOrInvalid_ShouldHaveValidationError(string? libraryId)
@@ -56,7 +56,7 @@ public class GetTrackQueryValidatorTests
[Theory]
[InlineData(null)] // missing route value
[InlineData("")] // empty route value
[InlineData(" ")] // whitespace route value, which the format rule skips but the not empty rule rejects
[InlineData(" ")] // whitespace route value, which both the not empty rule and the format rule reject
[InlineData("not-an-artist-guid")] // non-Guid route value
[InlineData("00000000-0000-0000-0000-000000000000")] // empty Guid route value
public void Validate_WhenArtistIdIsEmptyOrInvalid_ShouldHaveValidationError(string? artistId)
@@ -74,7 +74,7 @@ public class GetTrackQueryValidatorTests
[Theory]
[InlineData(null)] // missing route value
[InlineData("")] // empty route value
[InlineData(" ")] // whitespace route value, which the format rule skips but the not empty rule rejects
[InlineData(" ")] // whitespace route value, which both the not empty rule and the format rule reject
[InlineData("not-an-album-guid")] // non-Guid route value
[InlineData("00000000-0000-0000-0000-000000000000")] // empty Guid route value
public void Validate_WhenAlbumIdIsEmptyOrInvalid_ShouldHaveValidationError(string? albumId)
@@ -92,7 +92,7 @@ public class GetTrackQueryValidatorTests
[Theory]
[InlineData(null)] // missing route value
[InlineData("")] // empty route value
[InlineData(" ")] // whitespace route value, which the format rule skips but the not empty rule rejects
[InlineData(" ")] // whitespace route value, which both the not empty rule and the format rule reject
[InlineData("not-a-track-guid")] // non-Guid route value
[InlineData("00000000-0000-0000-0000-000000000000")] // empty Guid route value
public void Validate_WhenTrackIdIsEmptyOrInvalid_ShouldHaveValidationError(string? trackId)