We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57cee93 commit b44e64eCopy full SHA for b44e64e
1 file changed
ICSharpCode.SharpZipLib.Tests/Zip/ZipTests.cs
@@ -2734,7 +2734,6 @@ public void UnicodeText()
2734
2735
[Test]
2736
[Category("Zip")]
2737
- //[ExpectedException(typeof(FileNotFoundException))]
2738
public void ExtractExceptions()
2739
{
2740
var fastZip = new FastZip();
@@ -2743,7 +2742,7 @@ public void ExtractExceptions()
2743
2742
2744
string addFile = Path.Combine(tempFilePath, "test.zip");
2745
try {
2746
- fastZip.ExtractZip(addFile, @"z:\doesnt exist", null);
+ Assert.Throws<FileNotFoundException>(() => fastZip.ExtractZip(addFile, @"z:\doesnt exist", null));
2747
} finally {
2748
File.Delete(addFile);
2749
}
0 commit comments