Implements tests for commit 1aa427b1e2

This commit is contained in:
BinaryAlley committed 2026-10-28 13:39:12 +02:00
1 parent e52081533a
commit 8b8d077c6a
6 files changed
+305 -16

No files matched your search

@@ -157,6 +157,22 @@ public class AudioMetadataDtoMappingTests
Assert.Equal(trackDisambiguation, track.Disambiguation.Value);
}
[Fact]
public void ApplyTo_WhenApplyingAudioMetadata_ShouldPreserveTheTrackFilePath()
{
// Arrange
(Artist artist, Album album, Track track) = CreateDomainArtist();
string originalPath = track.Path;
AudioMetadataDto dto = _audioMetadataDtoFixture.Create();
// Act
Result<Updated> result = dto.ApplyTo(artist, album, track, []);
// Assert
Assert.False(result.IsFailure);
Assert.Equal(originalPath, track.Path);
}
/// <summary>
/// Creates a domain artist that owns a single album, which in turn owns a single track.
/// </summary>