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 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");
        }
Beispiel #3
0
        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);
        }
Beispiel #4
0
        static void Main(string[] args)
        {
            var context = new MyArchiver();

            context.Interpret(string.Join(" ", args));
        }
Beispiel #5
0
 public void TestPerformArchiveOneDirectory()
 {
     MyArchiver.AddDirectory(@"C:\Temp\Stf\Config");
     MyArchiver.PerformArchive();
 }
Beispiel #6
0
 public void TestPerformArchiveZeroAndOneFile()
 {
     MyArchiver.AddFile(@"C:\Temp\Stf\Config\StfConfiguration.xml");
     MyArchiver.PerformArchive();
 }
Beispiel #7
0
 static void Main(string[] args)
 {
     var context = new MyArchiver();
     context.Interpret(string.Join(" ", args));
 }