Пример #1
0
 private void InitializeApplication(string appPath)
 {
     if (this.ActualCapabilities.DebugConnectToRunningApp)
     {
         this.Deployer.UsePreInstalledApplication(appPath);
     }
     else
     {
         this.Deployer.Install(appPath, this.ActualCapabilities.Dependencies);
         var expandedFiles = new FilesCapabilityExpander().ExpandFiles(this.ActualCapabilities.Files).ToList();
         this.Deployer.SendFiles(expandedFiles);
     }
 }
Пример #2
0
        public void BeforeTest()
        {
            var fileSystem =
                new MockFileSystem(
                    new Dictionary <string, MockFileData>
            {
                { @"c:\root.txt", new MockFileData(string.Empty) },
                { @"c:\demo\nested1.txt", new MockFileData(string.Empty) },
                { @"c:\demo\nested2.txt", new MockFileData(string.Empty) },
                { @"c:\demo\subfolder\file.txt", new MockFileData(string.Empty) },
            });

            this.expander = new FilesCapabilityExpander(fileSystem);
        }