Skip to content

Commit f8295b3

Browse files
committed
Added check if the temp path is set.
1 parent 30d4218 commit f8295b3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ public void ShouldThrowExceptionWhenPathIsInvalid()
4242
[Fact]
4343
public void ShouldNotThrowExceptionWhenPathIsCorrect()
4444
{
45-
MagickNET.SetTempDirectory(Path.GetTempPath());
45+
var tempDir = Path.GetTempPath();
46+
MagickNET.SetTempDirectory(tempDir);
47+
48+
Assert.Equal(tempDir, System.Environment.GetEnvironmentVariable("MAGICK_TEMPORARY_PATH"));
4649
}
4750
}
4851
}

0 commit comments

Comments
 (0)