Exemplo n.º 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);
 }
Exemplo n.º 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);
 }