private Throws_if_the_configuation_is_locked ( ) : void | ||
return | void |
public void Throws_if_the_configuation_is_locked()
{
var configuration = CreatedLockedConfiguration();
Assert.Equal(
Strings.ConfigurationLocked("AddInterceptor"),
Assert.Throws<InvalidOperationException>(() => configuration.AddInterceptor(new Mock<IDbInterceptor>().Object)).Message);
}