System.Data.Entity.DbConfigurationTests.Loaded.Loaded_throws_when_attempting_to_add_or_remove_a_null_handler C# (CSharp) Method

Loaded_throws_when_attempting_to_add_or_remove_a_null_handler() private method

            public void Loaded_throws_when_attempting_to_add_or_remove_a_null_handler()
            {
                Assert.Equal(
                    "value",
                    Assert.Throws<ArgumentNullException>(() => DbConfiguration.Loaded += null).ParamName);

                Assert.Equal(
                    "value",
                    Assert.Throws<ArgumentNullException>(() => DbConfiguration.Loaded -= null).ParamName);
            }
        }