mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 12:11:10 +00:00
Implements tests for commit eecf4315c6
This commit is contained in:
1 parent
8b8d077c6a
commit
ab2940d665
3 files changed
+28
-3
No files matched your search
+13
@@ -75,4 +75,17 @@ public class AudioFileFormatUtilitiesTests
|
||||
// Assert
|
||||
Assert.Equal(AudioFileFormat.MP3, result);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ToAudioFileFormat_WhenFilePathContainsDirectoriesAndMixedCaseExtension_ShouldReturnMappedFormat()
|
||||
{
|
||||
// Arrange
|
||||
string filePath = "library/music/Queen/A Night at the Opera (1975).Remastered/01 - Bohemian Rhapsody.FLAC";
|
||||
|
||||
// Act
|
||||
AudioFileFormat result = filePath.ToAudioFileFormat();
|
||||
|
||||
// Assert
|
||||
Assert.Equal(AudioFileFormat.FLAC, result);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user