SharpCompress/tests/SharpCompress.Test/Rar
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
..
RarArchiveAsyncTests.cs add archive tests 2025-10-29 09:08:08 +00:00
RarArchiveTests.cs Add negative test case for premature stream termination 2026-01-04 11:47:57 +00:00
RarCRCTest.cs review fixes 2025-10-31 10:55:33 +00:00
RarHeaderFactoryTest.cs more clean up on tests 2024-03-14 08:53:08 +00:00
RarReaderAsyncTests.cs Update csharpier and reformat 2025-11-25 11:50:21 +00:00
RarReaderTests.cs Update csharpier and reformat 2025-11-25 11:50:21 +00:00