public void FolderCleanWithAllExceptConfDeployModeTest() { var pathToSurvey = Path.Combine(_confSection.Settings.Paths.Surveys, _surveyDir); var updateRulesBuilder = new UpdateRulesBuilder(_confSection); _packageManager.UnpackZipIfOverwriteThrow(_pathToZipForInstall, pathToSurvey); _packageManager.CleanFolder(pathToSurvey, updateRulesBuilder[DeployMode.UpdateAllExceptConf]); Assert.True(File.Exists(Path.Combine(pathToSurvey, "web.config"))); Assert.True(File.Exists(Path.Combine(pathToSurvey, "connectionstrings.config"))); Assert.True(Directory.Exists(Path.Combine(pathToSurvey, "bin"))); Assert.False(File.Exists(Path.Combine(pathToSurvey, @"views\web.config"))); Assert.False(File.Exists(Path.Combine(pathToSurvey, @"customviews\web.config"))); Assert.False(File.Exists(Path.Combine(pathToSurvey, @"common\parameters.cs"))); }