public void RetrySettings_Default_Should_Call_SetType_With_The_Appropriate_Type() { var spy = new RetrySettingsSpy(); var s = spy.Default; Assert.Equal(typeof(Exception), spy.CallType); }
public void RetrySettings_Default_Should_Call_SetType() { var spy = new RetrySettingsSpy(); var s = spy.Default; Assert.Equal(1, spy.CallCount); }
public void RetrySettings_For_Should_Call_SetType_With_The_Appropriate_Type() { var spy = new RetrySettingsSpy(); spy.For<DivideByZeroException>(); Assert.Equal(typeof(DivideByZeroException), spy.CallType); }
public void RetrySettings_For_Should_Call_SetType() { var spy = new RetrySettingsSpy(); spy.For<Exception>(); Assert.Equal(1, spy.CallCount); }