Skip to content

Commit b44e64e

Browse files
committed
Upgrade ExpectedException to nunit3.
1 parent 57cee93 commit b44e64e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

ICSharpCode.SharpZipLib.Tests/Zip/ZipTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2734,7 +2734,6 @@ public void UnicodeText()
27342734

27352735
[Test]
27362736
[Category("Zip")]
2737-
//[ExpectedException(typeof(FileNotFoundException))]
27382737
public void ExtractExceptions()
27392738
{
27402739
var fastZip = new FastZip();
@@ -2743,7 +2742,7 @@ public void ExtractExceptions()
27432742

27442743
string addFile = Path.Combine(tempFilePath, "test.zip");
27452744
try {
2746-
fastZip.ExtractZip(addFile, @"z:\doesnt exist", null);
2745+
Assert.Throws<FileNotFoundException>(() => fastZip.ExtractZip(addFile, @"z:\doesnt exist", null));
27472746
} finally {
27482747
File.Delete(addFile);
27492748
}

0 commit comments

Comments
 (0)