Skip to content

Commit

Permalink
Fix ReadGbxMagic test
Browse files Browse the repository at this point in the history
  • Loading branch information
BigBang1112 committed Nov 24, 2024
1 parent 9a18c7c commit b7e379a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Tests/GBX.NET.Tests/Unit/Serialization/GbxReaderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,8 @@ public void ReadGbxMagic_MissingData_ThrowsEndOfStream()
ms.Write([(byte)'G', (byte)'B']);
ms.Position = 0;

// Act
var result = r.ReadGbxMagic();

Assert.False(result);
// Act & Assert
Assert.Throws<EndOfStreamException>(() => r.ReadGbxMagic());
}

[Fact]
Expand Down

0 comments on commit b7e379a

Please sign in to comment.