Esempio n. 1
0
        public void ErrorWhenConnectionStringIsSpecifiedInBothAppSettingsAndConnectionStrings()
        {
            var sut = new DuplicatedConfigSqlServerToggle();

            var ex = Assert.Throws <ToggleConfigurationError>(() => sut.FeatureEnabled);

            ex.Message.ShouldBe("The connection string for 'FeatureToggle.DuplicatedConfigSqlServerToggle' is configured multiple times.");
        }
        public void ErrorWhenConnectionStringIsSpecifiedInBothAppSettingsAndConnectionStrings()
        {
            var sut = new DuplicatedConfigSqlServerToggle();

            var ex = Assert.Throws<ToggleConfigurationError>(() => sut.FeatureEnabled);

            ex.Message.ShouldBe("The connection string for 'FeatureToggle.DuplicatedConfigSqlServerToggle' is configured multiple times.");
        }