public void Excluding_dirs_is_case_insensitive() { var step = new CleanDirectoryDeploymentStep(new DirectoryAdapter(), new FileAdapter(), new Lazy <string>(() => _workingDir), new[] { "STAY_HERE" }); Directory.CreateDirectory(_workingDir + "/stay_here"); step.Prepare(); step.Execute(); Assert.IsTrue(Directory.Exists(_workingDir + "/stay_here")); }
public void Excluded_dirs_are_not_cleaned() { var step = new CleanDirectoryDeploymentStep(new DirectoryAdapter(), new FileAdapter(), new Lazy <string>(() => _workingDir), new[] { "stay_here" }); Directory.CreateDirectory(_workingDir + "/stay_here"); step.Prepare(); step.Execute(); Assert.IsTrue(Directory.Exists(_workingDir + "/stay_here")); }