private void VerifyKeyProperty(EntityTypeConfiguration configuration, string expectedKeyName, params PropertyInfo[] props) { var entityType = CreateEntityTypeWithProperties(props); configuration.Configure(entityType, new EdmModel(DataSpace.CSpace)); Assert.Equal(1, entityType.KeyProperties.Count); Assert.Equal(expectedKeyName, entityType.KeyProperties.Single().Name); }