public void Test() { var context = new MyArchiver(); context.Interpret(@"add NightlyBuild.zip --compress 5 --format zip --sfx doc\readme.txt src\prog.cpp"); context.Interpret(@"test NightlyBuild.zip"); context.Interpret(@"extract NightlyBuild.zip --output d:\MyWorkingDir"); }
public void TestPerformArchiveAndZip() { const string ZipFilename = @"c:\temp\Stf\StfArchiver.zip"; if (File.Exists(ZipFilename)) { File.Delete(ZipFilename); } MyAssert.FileNotExists("Deleted file should not exist", ZipFilename); MyArchiver.Configuration.ZipFilename = ZipFilename; MyArchiver.Configuration.DoArchiveFoldersAndFiles = false; MyArchiver.Configuration.DoArchiveToZipfile = true; MyArchiver.AddDirectory(@"C:\Temp\Stf\Config"); MyArchiver.PerformArchive(); MyAssert.FileExists("Zip file should exist", ZipFilename); }
static void Main(string[] args) { var context = new MyArchiver(); context.Interpret(string.Join(" ", args)); }
public void TestPerformArchiveOneDirectory() { MyArchiver.AddDirectory(@"C:\Temp\Stf\Config"); MyArchiver.PerformArchive(); }
public void TestPerformArchiveZeroAndOneFile() { MyArchiver.AddFile(@"C:\Temp\Stf\Config\StfConfiguration.xml"); MyArchiver.PerformArchive(); }