你的位置: 码友网首页 / 资讯源列表 / Sometimes It's Easier to Mock Without Moq

关于[Sometimes It's Easier to Mock Without Moq]的摘要:

I like Moq. It’s easy to use and it’s used frequently enough that developers are familiar with it. But sometimes there’s an even easier way to write tests, and that involves creating classes that mock interfaces. As an example (I’ll try not to convolute this) suppose we have a class that...

原文地址: http://scotthannen.org/blog/2020/07/10/easier-to-mock-without-moq.html

收录时间: 2020-07-14 浏览量: 1631 分类: .NET

| 0 收藏 | 0