From fa7f8311e5c01a75bcefb0fdf74192b912ed9a38 Mon Sep 17 00:00:00 2001 From: Antoine Aflalo Date: Tue, 9 Apr 2024 00:27:44 -0400 Subject: [PATCH] test: improve readability --- SoundSwitch.Tests/FileDownloaderTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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