Skip to content

Commit

Permalink
Corrected unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LTRData committed Nov 13, 2024
1 parent bcda927 commit 8bb72d7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Library/DiscUtils.Core/Compression/BigEndianBitStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions Tests/LibraryTests/Compression/ZlibStreamTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
using System.IO.Compression;
using System.Text;
using DiscUtils.Compression;
using DiscUtils.Streams;
using Xunit;

namespace LibraryTests.Compression;
Expand Down
2 changes: 1 addition & 1 deletion Tests/LibraryTests/LibraryTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net9.0</TargetFrameworks>
<TargetFrameworks>net46;net48;net8.0;net9.0</TargetFrameworks>
<DebugType>portable</DebugType>
<AssemblyName>LibraryTests</AssemblyName>
<PackageId>LibraryTests</PackageId>
Expand Down

0 comments on commit 8bb72d7

Please sign in to comment.