摘要:
通过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)
编辑