public void ControlStyle () { DataGridPoker p = new DataGridPoker (); Assert.AreEqual (p.ControlStyle ().GetType (), typeof (TableStyle), "A1"); TableStyle t = (TableStyle) p.ControlStyle (); Assert.AreEqual (t.GridLines, GridLines.Both, "A2"); Assert.AreEqual (t.CellSpacing, 0, "A3"); }