public virtual void Navigations_can_have_field_cleared() { var entityType = new Model().AddEntityType(typeof(FullProp)); var property = entityType.AddProperty("Id", typeof(int)); var key = entityType.SetPrimaryKey(property); var foreignKey = entityType.AddForeignKey(property, key, entityType); var propertyInfo = typeof(FullProp).GetAnyProperty("Reference"); Properties_can_have_field_cleared_test( foreignKey.HasDependentToPrincipal(propertyInfo), propertyInfo, "_reference"); }