Beispiel #1
0
 private void AssertTransformNotRun(string configFile, string transformFile)
 {
     configurationTransformer.DidNotReceive().PerformTransform(
         Arg.Is <string>(s => s.Equals(BuildConfigPath(configFile), StringComparison.OrdinalIgnoreCase)),
         Arg.Is <string>(s => s.Equals(BuildConfigPath(transformFile), StringComparison.OrdinalIgnoreCase)),
         Arg.Is <string>(s => s.Equals(BuildConfigPath(configFile), StringComparison.OrdinalIgnoreCase)));
 }
Beispiel #2
0
        public void ShouldNotApplyReleaseTransformIfAutomaticallyRunConfigurationTransformationFilesFlagNotSet()
        {
            var webConfig = Path.Combine(stagingDirectory, "web.config");
            var webConfigReleaseTransform = Path.Combine(stagingDirectory, "web.Release.config");

            MockSearchableFiles(fileSystem, stagingDirectory, new[] { webConfig, webConfigReleaseTransform }, "*.config");

            variables.Set(SpecialVariables.Package.AutomaticallyRunConfigurationTransformationFiles, false.ToString());
            CreateConvention().Install(deployment);

            configurationTransformer.DidNotReceive().PerformTransform(webConfig, webConfigReleaseTransform, webConfig);
        }
Beispiel #3
0
 private void AssertTransformNotRun(string configFile, string transformFile)
 {
     configurationTransformer.DidNotReceive().PerformTransform(BuildConfigPath(configFile), BuildConfigPath(transformFile), BuildConfigPath(configFile));
 }