예제 #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)));
 }
예제 #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);
        }
예제 #3
0
 private void AssertTransformNotRun(string configFile, string transformFile)
 {
     configurationTransformer.DidNotReceive().PerformTransform(BuildConfigPath(configFile), BuildConfigPath(transformFile), BuildConfigPath(configFile));
 }