public static void MyClassCleanup() { var fs = new FileSystem(); fs.DeleteDirectoryAndAllFiles(TestConstants.ExistingDirectory); fs.DeleteDirectoryAndAllFiles(TestConstants.NewDirectory); fs.DeleteDirectoryAndAllFiles(TestConstants.TempDirectory); fs.DeleteDirectoryAndAllFiles(TestConstants.NonExistingDirectory); }
public void MyTestInitialize() { var fs = new FileSystem(); fs.DeleteDirectoryAndAllFiles(TestConstants.ExistingDirectory); fs.DeleteDirectoryAndAllFiles(TestConstants.NewDirectory); fs.DeleteDirectoryAndAllFiles(TestConstants.TempDirectory); fs.DeleteDirectoryAndAllFiles(TestConstants.NonExistingDirectory); fs.CreateDirectory(TestConstants.ExistingDirectory); fs.CopyFiles("TestData", TestConstants.ExistingDirectory); }