public void CreateDatabase_using_Migrations_does_not_suppress_initializers() { var internalContext = CreateMockContextForMigrator().Object; DbContextInfo.ClearInfoForContext(internalContext.Owner.GetType()); new DatabaseCreator().CreateDatabase( internalContext, (config, context) => new Mock <DbMigrator>(config, context, DatabaseExistenceState.Unknown).Object, null); Assert.Null(DbContextInfo.TryGetInfoForContext(internalContext.Owner.GetType())); }