mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-11-16 17:31:10 +00:00
Use more SC exceptions instead of generic ones
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using SharpCompress.Common;
|
||||
using SharpCompress.IO;
|
||||
using SharpCompress.Test.Mocks;
|
||||
using Xunit;
|
||||
@@ -34,7 +35,7 @@ public class SharpCompressStreamEdgeTest
|
||||
var ms = new MemoryStream(new byte[] { 1, 2, 3, 4, 5 });
|
||||
var stream = SharpCompressStream.CreateNonDisposing(ms);
|
||||
stream.ThrowOnDispose = true;
|
||||
Assert.Throws<InvalidOperationException>(() => stream.Dispose());
|
||||
Assert.Throws<ArchiveOperationException>(() => stream.Dispose());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in New Issue
Block a user