diff --git a/SoundSwitch.Tests/FileDownloaderTests.cs b/SoundSwitch.Tests/FileDownloaderTests.cs index cad2d7d9bb..0fafbd3cd4 100644 --- a/SoundSwitch.Tests/FileDownloaderTests.cs +++ b/SoundSwitch.Tests/FileDownloaderTests.cs @@ -11,7 +11,7 @@ namespace SoundSwitch.Tests; [TestFixture] public class FileDownloaderTests { - private bool IsMP4(MemoryStream stream) + private bool IsMP4(Stream stream) { // Check if the stream has enough bytes for the magic number if (stream.Length < 8) @@ -44,6 +44,6 @@ await FileDownloader.DownloadFileAsync(uri, stream, (l, l1) => //Assert downloaded.Should().Be(fileSize); - IsMP4(stream).Should().BeTrue(); + stream.Should().Match(memStream => IsMP4(memStream)); } } \ No newline at end of file