public void AddForeignKeyConstraintOneOneColumnWithGenericExtensionMethod_GetCorrectInformationInTable() { // Arrange var table = new Table<ClubMember>("ClubMembers"); // Act table.AddAutoIncrementColumn(m => m.Id); table.AddColumn(m => m.ClubId).ForeignKey<Club>(m => m.ClubId); // Assert Assert.Equal(1, table.Columns.Where(m => m.ForeignKey != null).Count()); Assert.Equal("ClubId", table.Columns.First(m => m.ForeignKey != null).ForeignKey.ColumnName); Assert.Equal("Clubs", table.Columns.First(m => m.ForeignKey != null).ForeignKey.TableName); }