public void ZipPathTest()
        {
            // Initialise Instance
            var target = new Zip { Action = ZipAction.Create, CompressPath = @"D:\Projects\teambuild2010contrib\MAIN\Source\Activities.Tests\Compression\TestFiles", ZipFileName = @"D:\a\newZipByPath.zip" };

            // Create a WorkflowInvoker and add the IBuildDetail Extension
            WorkflowInvoker invoker = new WorkflowInvoker(target);
            var actual = invoker.Invoke();

            // Test the result
            Assert.IsTrue(System.IO.File.Exists(@"d:\a\newZipByPath.zip"));
        }
        public void ZipFilesTest()
        {
            // Initialise Instance
            var target = new Zip { Action = ZipAction.Create, ZipFileName = @"D:\a\newZipByFiles.zip" };
            
            // Declare additional parameters
            var parameters = new Dictionary<string, object>
            {
                { "Files", new[] { @"D:\Projects\teambuild2010contrib\MAIN\Source\Activities.Tests\Compression\TestFiles\TestFiles (1).txt" } },
            };

            // Create a WorkflowInvoker and add the IBuildDetail Extension
            // Invoke the Workflow
            WorkflowInvoker.Invoke(target, parameters);

            // Test the result
            Assert.IsTrue(System.IO.File.Exists(@"d:\a\newZipByFiles.zip"));
        }