public void ReturnsTrueForForeignKeyPropertiesAndViceVersa() { var foreignKeyProperty = typeof(TestDBCRecord).GetProperties() .First(p => p.Name == nameof(TestDBCRecord.TestForeignKeyField)); var otherProperty = typeof(TestDBCRecord).GetProperties() .First(p => p.Name == nameof(TestDBCRecord.TestSimpleField)); Assert.True(DBCInspector.IsPropertyForeignKey(foreignKeyProperty)); Assert.False(DBCInspector.IsPropertyForeignKey(otherProperty)); }