safer test cleanup

This commit is contained in:
David Sparer
2017-11-09 18:48:59 -06:00
parent a667502836
commit b68e0600bd

View File

@@ -23,7 +23,8 @@ namespace mRemoteNGTests.Config.DataProviders
public void Teardown()
{
var tempFilePath = FileTestHelpers.GetAppSpecificTempDirectory();
Directory.Delete(tempFilePath, true);
if (Directory.Exists(tempFilePath))
Directory.Delete(tempFilePath, true);
}
[Test]