示例#1
0
        public void ErrorWhenEntryInConnectionStringsButConnectionStringIsWhitespace()
        {
            var sut = new ConnectionStringConfiguredByNameSqlServerToggle();

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

            ex.Message.ShouldBe("The <connectionStrings> value for connection named 'EmptyConnectionString' is empty.");
        }
        public void ErrorWhenEntryInConnectionStringsButConnectionStringIsWhitespace()
        {
            var sut = new ConnectionStringConfiguredByNameSqlServerToggle();

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

            ex.Message.ShouldBe("The <connectionStrings> value for connection named 'EmptyConnectionString' is empty.");
        }