public void DetailsView_CreateAutoGenerateRow () { PokerDetailsView dv = new PokerDetailsView (); AutoGeneratedFieldProperties prop = new AutoGeneratedFieldProperties (); prop.Name = "FieldItem"; prop.Type = typeof(String); AutoGeneratedField field = dv.DoCreateAutoGeneratedRow (prop); Assert.AreEqual (typeof (string), field.DataType, "FieldDataType"); Assert.AreEqual ("FieldItem", field.HeaderText, "FieldHeaderText"); Assert.AreEqual ("FieldItem",field.SortExpression ,"FieldSortExpretion"); Assert.AreEqual (typeof(AutoGeneratedField), field.GetType (), "AutoGeneratedFieldType"); }