Moq internal class and/or internal method

后端 未结 0 1426
说谎
说谎 2021-01-01 00:27

On my project, I set:

[assembly: InternalsVisibleTo("xyz")]

My unit tests work when my class and method are public.

         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题