Skip to content

demonicmetalcs/IntercepTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

IntercepTest

Warning This is a work-in-progress and not the finished product.

Feel free to leave feature suggestions

This relies on an experimental version of c# 12 called Interceptors This will not be available to use until Visual Studio 17.7, preview 3 will be released

Idea

When testing a service you could use an interface or a mock. But not all services will have a mock or your code might not use DI. So it might me difficult to test a function or impossable to mock a function.

This project will try to use Interceptors to mock functions that is difficult to mock.

Purpose

Initial Problems

  • can InterceptsLocationAttribute be used with source generation
  • Find method to mock
  • Test/mock code and generated code in different projects
  • multiple injected code for one function for different test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages