public void DetailsView_CreateRow () { PokerDetailsView dv = new PokerDetailsView (); DetailsViewRow row = dv.DoCreateRow (1, DataControlRowType.DataRow, DataControlRowState.Alternate); Assert.AreEqual (1, row.RowIndex, "rowIndex1"); Assert.AreEqual (DataControlRowType.DataRow, row.RowType, "RowType1"); Assert.AreEqual (DataControlRowState.Alternate, row.RowState, "RowState1"); row = dv.DoCreateRow (2, DataControlRowType.Header, DataControlRowState.Insert); Assert.AreEqual (2, row.RowIndex, "rowIndex2"); Assert.AreEqual (DataControlRowType.Header , row.RowType, "RowType2"); Assert.AreEqual (DataControlRowState.Insert , row.RowState, "RowState2"); row = dv.DoCreateRow (3, DataControlRowType.EmptyDataRow , DataControlRowState.Selected ); Assert.AreEqual (3, row.RowIndex, "rowIndex3"); Assert.AreEqual (DataControlRowType.EmptyDataRow , row.RowType, "RowType3"); Assert.AreEqual (DataControlRowState.Selected , row.RowState, "RowState3"); DetailsViewPagerRow pagerRow = (DetailsViewPagerRow )dv.DoCreateRow (5, DataControlRowType.Pager , DataControlRowState.Edit ); Assert.AreEqual (5, pagerRow.RowIndex, "rowIndex4"); Assert.AreEqual (DataControlRowType.Pager, pagerRow.RowType, "RowType4"); Assert.AreEqual (DataControlRowState.Edit, pagerRow.RowState, "RowState4"); }