System.Data.Entity.DbConfigurationTests.AddInterceptor.Throws_if_the_configuation_is_locked C# (CSharp) Method

Throws_if_the_configuation_is_locked() private method

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);
            }