Shims are not generated for .NET methods

前端 未结 2 1711
孤独总比滥情好
孤独总比滥情好 2021-02-13 09:29

When I began using Microsoft Fakes, I was excited to start shimming some .NET methods. I was lead to believe that I would be able to shim ANY .NET method, static or not: http://

2条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-13 09:50

    I also had the same problem.

    My System.fakes and mscorlib.fakes looked like this :

    
      
      
        
      
    
    

    and

    
      
      
        
      
    
    

    Solution

    System.fakes

     
       
       
         
       
     
    

    mscorlib.fakes

    
      
      
        
      
    
    

    and after saving the files I Rebuild the solution. And now I have ShimBackgroundWorker.

提交回复
热议问题