Beispiel #1
0
        public void ErrorWhenAppSettingsSqlStatementIsEmpty()
        {
            var sut = new EmptyAppSettingsSqlStatementValueSqlServerToggle();

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

            ex.Message.ShouldBe("The <appSettings> value for key 'FeatureToggle.EmptyAppSettingsSqlStatementValueSqlServerToggle.SqlStatement' is empty.");
        }
        public void ErrorWhenAppSettingsSqlStatementIsEmpty()
        {
            var sut = new EmptyAppSettingsSqlStatementValueSqlServerToggle();

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

            ex.Message.ShouldBe("The <appSettings> value for key 'FeatureToggle.EmptyAppSettingsSqlStatementValueSqlServerToggle.SqlStatement' is empty.");
        }