public void DetailsView_CreateTable () { PokerDetailsView dv = new PokerDetailsView (); Table tb = dv.DoCreateTable(); Assert.AreEqual (null, tb.Parent, "CreateTable1"); Assert.AreEqual (String.Empty, tb.BackImageUrl, "CreateTable2"); Assert.AreEqual (0, tb.Rows.Count, "CreateTable3"); #if NET_4_0 Assert.AreEqual (String.Empty, tb.ClientID, "CreateTable3"); #else Assert.AreEqual (null, tb.ClientID , "CreateTable3"); #endif dv.ID = "testId"; //private filed _parentID should be set to "testId" tb = dv.DoCreateTable (); Assert.AreEqual (-1, tb.CellSpacing, "CreateTable4"); Assert.AreEqual (HorizontalAlign.NotSet , tb.HorizontalAlign , "CreateTable5"); }