Top "Microsoft-fakes" questions

Microsoft Fakes is an isolation framework for creating delegate-based test stubs and shims in .NET Framework applications.

UnitTestIsolationException: Throws Exception while running Shims test in Release/Debug mode

I am trying to run this unit test using Microsoft Shims, but it throws me exception in Shims.Context.Create(); …

c# unit-testing microsoft-fakes
Testing.Fakes Exception: Failed to resolve profiler path from COR_PROFILER_PATH and COR_PROFILER environment variables

Test which use Microsoft Fakes Framework fail with exception: Microsoft.QualityTools.Testing.Fakes.UnitTestIsolation.UnitTestIsolationException: Failed to resolve profiler path …

visual-studio-2012 visual-studio-2013 microsoft-fakes
Shimming with Microsoft Fakes and a static, generic method

I need to shim a static generic method for a unit test. However, I can't seem to get Fakes to …

unit-testing stub microsoft-fakes shim
Using Microsoft Fakes to Shim a method with ref parameters

I have a static method with ref parameters in my legacy (untestable) dll. I am trying to write unit tests …

unit-testing microsoft-fakes
Any alternative for Microsoft Fakes in .NET Core?

I am looking for an alternative to Microsoft Fakes in .NET Core. I know it is no longer supported in .…

c# .net-core microsoft-fakes