public void ErrorWhenConnectionStringIsNotConfigured() { var sut = new MissingConnectionStringSqlServerToggle(); var ex = Assert.Throws <ToggleConfigurationError>(() => sut.FeatureEnabled); ex.Message.ShouldBe("The connection string was not configured in <appSettings> with a key of 'FeatureToggle.MissingConnectionStringSqlServerToggle.ConnectionString' or 'FeatureToggle.MissingConnectionStringSqlServerToggle.ConnectionStringName' nor in <connectionStrings> with a name of 'FeatureToggle.MissingConnectionStringSqlServerToggle'."); }
public void ErrorWhenConnectionStringIsNotConfigured() { var sut = new MissingConnectionStringSqlServerToggle(); var ex = Assert.Throws<ToggleConfigurationError>(() => sut.FeatureEnabled); ex.Message.ShouldBe("The connection string was not configured in <appSettings> with a key of 'FeatureToggle.MissingConnectionStringSqlServerToggle.ConnectionString' or 'FeatureToggle.MissingConnectionStringSqlServerToggle.ConnectionStringName' nor in <connectionStrings> with a name of 'FeatureToggle.MissingConnectionStringSqlServerToggle'."); }
public void ShouldErrorWhenConnectionsStringNotInConfig() { var sut = new MissingConnectionStringSqlServerToggle(); var x = sut.FeatureEnabled; }
public void ErrorWhenConnectionsStringNotInConfig() { var sut = new MissingConnectionStringSqlServerToggle(); Assert.Throws <ToggleConfigurationError>(() => sut.FeatureEnabled); }
public void ErrorWhenConnectionsStringNotInConfig() { var sut = new MissingConnectionStringSqlServerToggle(); Assert.Throws<ToggleConfigurationError>(() => sut.FeatureEnabled); }