예제 #1
0
 public static void MyClassCleanup()
 {
     var fs = new FileSystem();
     fs.DeleteDirectoryAndAllFiles(TestConstants.ExistingDirectory);
     fs.DeleteDirectoryAndAllFiles(TestConstants.NewDirectory);
     fs.DeleteDirectoryAndAllFiles(TestConstants.TempDirectory);
     fs.DeleteDirectoryAndAllFiles(TestConstants.NonExistingDirectory);
 }
예제 #2
0
 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);
 }