public void Throws_if_given_a_null_generator_or_bad_invariant_name()
{
Assert.Equal(
"sqlGenerator",
Assert.Throws<ArgumentNullException>(() => new DbConfiguration().SetMigrationSqlGenerator("Karl", null)).ParamName);
Assert.Equal(
Strings.ArgumentIsNullOrWhitespace("providerInvariantName"),
Assert.Throws<ArgumentException>(
() => new DbConfiguration().SetMigrationSqlGenerator(null, () => new Mock<MigrationSqlGenerator>().Object)).Message);
Assert.Equal(
Strings.ArgumentIsNullOrWhitespace("providerInvariantName"),
Assert.Throws<ArgumentException>(
() => new DbConfiguration().SetMigrationSqlGenerator("", () => new Mock<MigrationSqlGenerator>().Object)).Message);
Assert.Equal(
Strings.ArgumentIsNullOrWhitespace("providerInvariantName"),
Assert.Throws<ArgumentException>(
() => new DbConfiguration().SetMigrationSqlGenerator(" ", () => new Mock<MigrationSqlGenerator>().Object)).Message);
}