SharpCompress/tests/SharpCompress.Test/Mocks
copilot-swe-agent[bot] 41ed4c8186 Add negative test case for premature stream termination
Added Rar_StreamValidation_ThrowsOnTruncatedStream test that verifies InvalidOperationException IS thrown when a RAR stream ends prematurely (position < expected length). Created TruncatedStream mock to simulate corrupted/truncated RAR files. This test validates the exception condition (_position < Length) works correctly.

Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com>
2026-01-04 11:47:57 +00:00
..
FlushOnDisposeStream.cs more clean up 2024-03-14 08:57:16 +00:00
ForwardOnlyStream.cs add async to forward only streams 2025-10-28 11:30:12 +00:00
TestStream.cs more clean up 2024-03-14 08:57:16 +00:00
TruncatedStream.cs Add negative test case for premature stream termination 2026-01-04 11:47:57 +00:00