Skip to content

Commit

Permalink
test: improve readability
Browse files Browse the repository at this point in the history
  • Loading branch information
Belphemur committed Apr 9, 2024
1 parent 080bd00 commit fa7f831
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SoundSwitch.Tests/FileDownloaderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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));
}
}

0 comments on commit fa7f831

Please sign in to comment.