3 ms·
Application Verifier provides fault injection, as well as detection for a bunch of conditions (https://learn.microsoft.com/en-us/windows-hardware/drivers/devtes
by dwattttt 1y ago
Application Verifier provides fault injection, as well as detection for a bunch of conditions (https://learn.microsoft.com/en-us/windows-hardware/drivers/devtest/application-verifier https://learn.microsoft.com/en-us/windows-hardware/drivers/d...).
It's only intended for native/unmanaged code though.
- colejohnson66 1y agoThe recommended approach for managed apps (meaning .NET) is probably dependency injection. If you want to test a component with fallible methods, write an interface wrapper and inject a fallible mock. The JIT will do dynamic PGO and devirtualize in normal application usage.