Exemple #1
0
        public void ShouldNotRunIfVariableNotSet()
        {
            var convention = new AppSettingsJsonConvention(generator);

            convention.Install(deployment);
            generator.DidNotReceiveWithAnyArgs().Generate(null, null);
        }
Exemple #2
0
        public void ShouldFindAndCallDeployScripts()
        {
            deployment.Variables.Set(SpecialVariables.Package.GenerateAppSettingsJson, "true");
            deployment.Variables.Set(SpecialVariables.Package.AppSettingsJsonPath, "appsettings.environment.json");
            var convention = new AppSettingsJsonConvention(generator);

            convention.Install(deployment);
            generator.Received().Generate("appsettings.environment.json", deployment.Variables);
        }