profile for Macon_Cao at Stack Overflow, Q&A for professional and enthusiast programmers
  2011年3月7日
摘要: 通过Rino Mock来模拟接口并返回数据,验证客户端数据处理的正确性。1[TestMethod]2publicvoidValue_Test()3{4IBugInfoDataProviderdataProvider=MockRepository.GenerateMock<IBugInfoDataProvider>();5dataProvider.Stub(n=>n.SearchMembers()).Return(newMember[]{6newMember{MemberID=1,Name="Peter"}7});89MemberControlctrl=ne 阅读全文
posted @ 2011-03-07 16:56 无所畏惧,有所期待 阅读(1016) 评论(0) 推荐(0) 编辑