/// <summary> ///GetStateNames_DRToModelDTToList 的测试 ///</summary> //[TestMethod()] //[Test] public void GetStateNames_DRToModelDTToListTest() { // string ConnectionString = string.Empty; // TODO: 初始化为适当的值 DBReturnStateType target = new DBReturnStateType(connstr); // TODO: 初始化为适当的值 DataRow dr = null; // TODO: 初始化为适当的值 ReturnStateType expected = null; // TODO: 初始化为适当的值 ReturnStateType actual; actual = target.GetStateNames_DRToModelDTToList(dr); Assert.AreEqual(expected, actual); Assert.Inconclusive("验证此测试方法的正确性。"); }
public ReturnStateType GetStateNames_DRToModelDTToList(DataRow dr) { ReturnStateType model = new ReturnStateType(); if (dr != null) { model.nid = ObjectConvertClass.static_ext_int(dr["nid"]); model.nReturnStateID = ObjectConvertClass.static_ext_int(dr["nReturnStateID"]); model.strStateName = ObjectConvertClass.static_ext_string(dr["strStateName"]); } return(model); }