Permalink
Browse files

Added some cleanup before each test

  • Loading branch information...
kmees committed Mar 13, 2013
1 parent 8860c91 commit a523e7999590d04d468d604d07316bd43f7176c8
Showing with 10 additions and 0 deletions.
  1. +10 −0 test/IronSharePoint.Framework.Test/Hive/PhysicalHive_Fixture.cs
@@ -19,6 +19,16 @@ public void TestFixtureSetUp()
_assetsRoot = Path.Combine(Directory.GetCurrentDirectory(), "_assets");
}
+ [SetUp]
+ public void SetUp()
+ {
+ if (File.Exists(Path.Combine(_assetsRoot, "i_do_not.exist")))
+ {
+ File.Delete(Path.Combine(_assetsRoot, "i_do_not.exist"));
+ }
+ }
+
+
[Test]
[ExpectedException(typeof(ArgumentException))]
public void Ctor_WhenDirectoryIsMissing_ThrowArgumentException()

0 comments on commit a523e79

Please sign in to comment.