public void then_has_4_strategies_defined() { Assert.IsInstanceOfType(retryManager.GetRetryStrategy("first"), typeof(ExponentialBackoff)); Assert.IsInstanceOfType(retryManager.GetRetryStrategy("second"), typeof(Incremental)); Assert.IsInstanceOfType(retryManager.GetRetryStrategy("third"), typeof(FixedInterval)); Assert.IsInstanceOfType(retryManager.GetRetryStrategy("fourth"), typeof(TestRetryStrategy)); }
public void then_has_some_strategies_defined() { Assert.IsInstanceOfType(retryManager.GetRetryStrategy("ExponentialIntervalDefault"), typeof(ExponentialBackoff)); Assert.IsInstanceOfType(retryManager.GetRetryStrategy("IncrementalIntervalDefault"), typeof(Incremental)); Assert.IsInstanceOfType(retryManager.GetRetryStrategy("FixedIntervalDefault"), typeof(FixedInterval)); Assert.IsInstanceOfType(retryManager.GetRetryStrategy("TestCustomRetryStrategy"), typeof(TestRetryStrategy)); }