Open sandboxFocus

Property FaultInjector

FaultInjector

Gets the injector of the fault injection points that the code under test reaches, which lets the test make production code throw at a chosen place.

Declaration
public TestFaultInjector FaultInjector { get; }
Property Value
Type Description
TestFaultInjector
Remarks

The injector is registered by CreateTestFaultInjector(), so this property is available only in a context created by UnitTestClass.