예제 #1
0
        private static void CleanUpCodeFilesAndFolders()
        {
            var testDirectory = TestContext.CurrentContext.TestDirectory;

            SetupFixture.DeleteFiles(testDirectory);

            foreach (var rockDirectory in Directory.GetDirectories(testDirectory))
            {
                Directory.Delete(rockDirectory, true);
            }
        }
예제 #2
0
        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);
            }
        }
예제 #3
0
 public static void SetUp() => SetupFixture.CleanUpCodeFilesAndFolders();
예제 #4
0
 public static void TearDown() => SetupFixture.CleanUpCodeFilesAndFolders();