public void GridView_CreateControlStyle () { PokerGridView g = new PokerGridView (); g.BorderColor = Color.Red; g.BorderStyle = BorderStyle.Dashed; Style s = g.DoCreateControlStyle (); Assert.AreEqual (typeof(TableStyle), s.GetType(), "CreateControlStyle#1"); Assert.AreEqual (((TableStyle) s).GridLines, GridLines.Both, "CreateControlStyle#2"); Assert.AreEqual (((TableStyle) s).CellSpacing, 0, "CreateControlStyle#3"); }