예제 #1
0
        public void ErrorWhenAppSettingsSqlStatementKeyNotInConfig()
        {
            var sut = new MissingAppSettingsSqlStatementKeySqlServerToggle();

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

            ex.Message.ShouldBe("The appSettings key 'FeatureToggle.MissingAppSettingsSqlStatementKeySqlServerToggle.SqlStatement' was not found.");
        }
        public void ErrorWhenAppSettingsSqlStatementKeyNotInConfig()
        {
            var sut = new MissingAppSettingsSqlStatementKeySqlServerToggle();

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

            ex.Message.ShouldBe("The appSettings key 'FeatureToggle.MissingAppSettingsSqlStatementKeySqlServerToggle.SqlStatement' was not found.");
        }