From 8bb72d7468a843a6179ac4daf8d406e88c8a4399 Mon Sep 17 00:00:00 2001
From: LTRData
Date: Wed, 13 Nov 2024 02:52:06 +0100
Subject: [PATCH] Corrected unit tests
---
Library/DiscUtils.Core/Compression/BigEndianBitStream.cs | 2 +-
Tests/LibraryTests/Compression/ZlibStreamTest.cs | 1 +
Tests/LibraryTests/LibraryTests.csproj | 2 +-
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Library/DiscUtils.Core/Compression/BigEndianBitStream.cs b/Library/DiscUtils.Core/Compression/BigEndianBitStream.cs
index de8066d5..45ba1f9c 100644
--- a/Library/DiscUtils.Core/Compression/BigEndianBitStream.cs
+++ b/Library/DiscUtils.Core/Compression/BigEndianBitStream.cs
@@ -82,7 +82,7 @@ private void EnsureBufferFilled()
{
_readBuffer[0] = 0;
_readBuffer[1] = 0;
- _byteStream.ReadExactly(_readBuffer, 0, 2);
+ _ = _byteStream.Read(_readBuffer, 0, 2);
_buffer = _buffer << 16 | (uint)(_readBuffer[0] << 8) | _readBuffer[1];
_bufferAvailable += 16;
diff --git a/Tests/LibraryTests/Compression/ZlibStreamTest.cs b/Tests/LibraryTests/Compression/ZlibStreamTest.cs
index 3d874e98..71338c5f 100644
--- a/Tests/LibraryTests/Compression/ZlibStreamTest.cs
+++ b/Tests/LibraryTests/Compression/ZlibStreamTest.cs
@@ -24,6 +24,7 @@
using System.IO.Compression;
using System.Text;
using DiscUtils.Compression;
+using DiscUtils.Streams;
using Xunit;
namespace LibraryTests.Compression;
diff --git a/Tests/LibraryTests/LibraryTests.csproj b/Tests/LibraryTests/LibraryTests.csproj
index 1f1cb04a..defd2fbe 100644
--- a/Tests/LibraryTests/LibraryTests.csproj
+++ b/Tests/LibraryTests/LibraryTests.csproj
@@ -2,7 +2,7 @@
- net9.0
+ net46;net48;net8.0;net9.0
portable
LibraryTests
LibraryTests