152 packages returned for Tags:"Moq"

  • 1,114 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.
  • 196 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 !
在单元测试(Unit Test)时,如果使用Moq作为隔离框架,并需要模似(Mock) DbContext(Entity Framework Core)下的DbSet<Entity>,本项目给出了解决方案,可以用List<Entity>或Entity[],模拟DbSet<Entity>完成测试操作。
  • 6,467 total downloads
  • last updated 4/17/2018
  • Latest version: 1.2.0
  • Moq Mock UnitTest
Automatically creates services for unit testing with constructor parameters as Moq-objects. Docs and info are available on the project's github site https://github.com/rbengtsson/Automoqer