155 packages returned for Tags:"MOQ"

  • 1,124 total downloads
  • last updated 8/1/2018
  • Latest version: 1.0.0-rc
  • Moq
Extension methods for Moq library which allows setting the out parameter from a callback
Extension for mocking Entity Framework Core operations such ToListAsync, FirstOrDefaultAsync etc. by Moq When writing tests for your application it is often desirable to avoid hitting the database. The extension allows you to achieve this by creating a context – with behavior defined by your tests –... More information
Roslyn analyzer that helps to write unit tests using Moq mocking library by highlighting typical errors and suggesting quick fixes. Port of Resharper extension to Roslyn. Find the full list of detected issues at project GitHub page.
在单元测试(Unit Test)时,如果使用Moq作为隔离框架,并需要模似(Mock) DbContext(Entity Framework Core)下的DbSet<Entity>,本项目给出了解决方案,可以用List<Entity>或Entity[],模拟DbSet<Entity>完成测试操作。
  • 210 total downloads
  • last updated 11/27/2018
  • Latest version: 1.0.0
  • Moq Protected
Correcting mock.Protected().As<> SetupGet/Setup/VerifyGet/Verify fails to find public virtual protected getter. No SetupSet/VerifySet !