UsersDTO dto = new UsersDTO()
{
recordId = Guid.Parse("qdc5f9b9-ea33-432f-bbec-7c78338ec677"),
u_Company = "helloxml",
u_CreateMan = "q",
u_CreateTime = DateTime.Parse("2014/2/2"),
u_Effective = DateTime.Parse("2015/2/2"),
u_Identity = 2,
u_LoginName = "lc",
u_Mail = "260890728@qq.com",
u_Name = "刘彻",
u_Phone = "110",
u_Pwd = "123",
u_Status = 1,
u_UpdateMan = "无",
u_UpdateTime = DateTime.Parse("2014/3/1"),
vip_Id = Guid.Parse("EDC5F9B9-EA33-432F-BBEC-7C79938EC628")
}; // TODO: 初始化为适当的值
UsersService target = new UsersService();
bool actual;
actual = target.UserAdd(dto, out msg);
Assert.AreEqual(expected, actual);
谢谢大家了,这是在做单元测试,问题已经搞定了!
错误?看不懂。没说清楚吧。
没看懂异常、