mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 16: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
+5
-3
@@ -36,11 +36,13 @@ public class MusicMimeTypesTests
|
||||
Assert.Equal(expectedMimeType, result);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void GetMimeType_WhenFormatIsNone_ShouldReturnOpaqueBinaryMimeType()
|
||||
[Theory]
|
||||
[InlineData(AudioFileFormat.None)] // the none audio format has no mime mapping
|
||||
[InlineData((AudioFileFormat)999)] // an unknown audio format has no mime mapping
|
||||
public void GetMimeType_WhenFormatIsUnknown_ShouldReturnOpaqueBinaryMimeType(AudioFileFormat format)
|
||||
{
|
||||
// Act
|
||||
string result = MusicMimeTypes.GetMimeType(AudioFileFormat.None);
|
||||
string result = MusicMimeTypes.GetMimeType(format);
|
||||
|
||||
// Assert
|
||||
Assert.Equal("application/octet-stream", result);
|
||||
|
||||
Reference in new issue
Block a user