Deleting specflow folders only if they exist

--HG--
branch : dev
This commit is contained in:
Sebastien Ros
2010-11-15 17:04:52 -08:00
parent 000667480b
commit 4f1f055377
2 changed files with 9 additions and 2 deletions

View File

@@ -31,7 +31,9 @@ namespace Orchard.Specs.Bindings {
[BeforeTestRun]
public static void BeforeTestRun() {
_orchardTemp.Delete(true).CreateDirectory();
if ( _orchardTemp.Exists ) {
_orchardTemp.Delete(true).CreateDirectory();
}
}
[AfterTestRun]