System.Data.Entity.DbConfigurationTests.SetHistoryContext.Throws_if_given_a_null_factory C# (CSharp) Méthode

Throws_if_given_a_null_factory() private méthode

private Throws_if_given_a_null_factory ( ) : void
Résultat void
            public void Throws_if_given_a_null_factory()
            {
                Assert.Equal(
                    "factory",
                    Assert.Throws<ArgumentNullException>(
                        () => new DbConfiguration().SetHistoryContext("Foo", null)).ParamName);

                Assert.Equal(
                    "factory",
                    Assert.Throws<ArgumentNullException>(
                        () => new DbConfiguration().SetDefaultHistoryContext(null)).ParamName);
            }