为返回 IEnumerable的方法编写 TDD 单元测试(卡利本微)
我想知道,如何调用从 Visual Studio 2010 的单元测试中返回 IEnumerable 的方法。我正在使用 rhino 模拟模拟框架。
I would like to know, how do I call a method that returns IEnumerable from within my unit test in Visual Studio 2010. I am using rhino mocks mocking framwork.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
像这样的东西应该是您正在寻找的:
由于 List 实现了 IEnumerable 接口,您将可以说您期望它;
Something like this should be what you are looking for:
Since a List implements the IEnumerable interface you will be able to say you expect it;