private static void CleanUpCodeFilesAndFolders() { var testDirectory = TestContext.CurrentContext.TestDirectory; SetupFixture.DeleteFiles(testDirectory); foreach (var rockDirectory in Directory.GetDirectories(testDirectory)) { Directory.Delete(rockDirectory, true); } }
private static void DeleteFiles(string directory) { foreach (var rockFile in Directory.GetFiles(directory, "Rock*.cs")) { File.Delete(rockFile); } foreach (var rockDirectory in Directory.GetDirectories(directory)) { SetupFixture.DeleteFiles(rockDirectory); } }
public static void SetUp() => SetupFixture.CleanUpCodeFilesAndFolders();
public static void TearDown() => SetupFixture.CleanUpCodeFilesAndFolders();