mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 14:11:10 +00:00
Implements tests for commit 1aa427b1e2
This commit is contained in:
1 parent
e52081533a
commit
8b8d077c6a
6 files changed
+305
-16
No files matched your search
+16
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user