Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more MusicStore and Identity tests #16594

Merged
merged 1 commit into from
Jul 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions test/EFCore.Relational.Specification.Tests/MigrationsTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,26 @@ protected virtual Task ExecuteAsync(IServiceProvider services, Action<MigrationB
[ConditionalFact]
public abstract void Can_diff_against_2_2_model();

[ConditionalFact]
public abstract void Can_diff_against_3_0_ASP_NET_Identity_model();

[ConditionalFact]
public abstract void Can_diff_against_2_2_ASP_NET_Identity_model();

[ConditionalFact]
public abstract void Can_diff_against_2_1_ASP_NET_Identity_model();

protected virtual void DiffSnapshot(ModelSnapshot snapshot, DbContext context)
{
var sourceModel = snapshot.Model;
var targetModel = context.Model;

var modelDiffer = context.GetService<IMigrationsModelDiffer>();
var operations = modelDiffer.GetDifferences(sourceModel, targetModel);

Assert.Equal(0, operations.Count);
}

protected virtual void BuildFirstMigration(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
Expand Down
Loading