Skip to content

Commit

Permalink
Add a test for #14618
Browse files Browse the repository at this point in the history
Resolves #14618
  • Loading branch information
AndriySvyryd committed Aug 19, 2019
1 parent 34f07f1 commit 1fd2f52
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/EFCore.Specification.Tests/DataAnnotationTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,9 @@ public virtual ModelBuilder Key_specified_on_multiple_properties_can_be_overridd

Validate(modelBuilder);

Assert.Equal(2, modelBuilder.Model.FindEntityType(typeof(CompositeKeyAttribute)).GetKeys().Single().Properties.Count);
var entityType = modelBuilder.Model.FindEntityType(typeof(CompositeKeyAttribute));
Assert.Equal(2, entityType.GetKeys().Single().Properties.Count);
Assert.Equal(2, entityType.GetProperties().Count());

return modelBuilder;
}
Expand Down

0 comments on commit 1fd2f52

Please sign in to comment.