Skip to content

Commit de73a5d

Browse files
committed
Restored unit test.
1 parent 06a5534 commit de73a5d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/Magick.NET.Tests/MagickNETTests/TheSetTempDirectoryMethod.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// and limitations under the License.
1212

1313
using System;
14+
using System.IO;
1415
using ImageMagick;
1516
using Xunit;
1617

@@ -37,6 +38,12 @@ public void ShouldThrowExceptionWhenPathIsInvalid()
3738
MagickNET.SetTempDirectory("Invalid");
3839
});
3940
}
41+
42+
[Fact]
43+
public void ShouldNotThrowExceptionWhenPathIsCorrect()
44+
{
45+
MagickNET.SetTempDirectory(Path.GetTempPath());
46+
}
4047
}
4148
}
4249
}

0 commit comments

Comments
 (0)