摘要:
通过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 阅读全文