public void CompressDirectoryTestDirNotExists() { // Call the CompressDirectory method of the ZipperUpper method on purpose // passing a path to a directory whose name is gibberish Assert.IsFalse( ZipperUpper.CompressDirectory(FakeFilePath, ValidZipFilePath) ); }
public void CompressDirectoryTestDestFileNotExists() { // Call the CompressDirectory method of the ZipperUpper method on purpose // passing a path to a directory whose name is valid but where the dest zip // file path is gibberish Assert.IsFalse( ZipperUpper.CompressDirectory(ValidDirectoryPath, FakeFilePath) ); }
public void CompressDirectoryTestValidInputs() { Assert.IsTrue( ZipperUpper.CompressDirectory(ValidDirectoryPath, ValidZipFilePath) ); Assert.IsTrue( File.Exists(ValidZipFilePath) ); }