Beispiel #1
0
        public void ShouldNotRunIfVariableIsFalse()
        {
            var convention = new StructuredConfigurationVariablesConvention(new StructuredConfigurationVariablesBehaviour(service));

            convention.Install(deployment);
            service.DidNotReceiveWithAnyArgs().ReplaceVariables(deployment);
        }
Beispiel #2
0
        public void ShouldRunIfVariableIsTrue()
        {
            var convention = new StructuredConfigurationVariablesConvention(new StructuredConfigurationVariablesBehaviour(service));

            deployment.Variables.Add(KnownVariables.Package.EnabledFeatures, KnownVariables.Features.StructuredConfigurationVariables);
            convention.Install(deployment);
            service.Received().ReplaceVariables(deployment);
        }