Moling System.dll
问题 I need to unit test a method that is using the System.Net.WebClient in the System.dll . I tried to Mole the System.dll , but when I tried to compile the project to add references to the System.dll mole, I got a bunch of errors like the following: Error 2 'System.Net.Moles.SFileWebResponse.Dispose(bool)': no suitable method found to override [C:\DGALibrary\DGALib.IO.Tests\obj\x86\Debug\Moles\s\m.g.csproj] C:\DGALibrary\DGALib.IO.Tests\m.g.cs 251374 33 DGALib.IO.Tests Error 3 'System.Net.Moles