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