public void Retried_operations_are_logged(Exception error, FakeWorkflowLogger log) { var sut = new RetryBehavior(2, TimeSpan.Zero).AttachTo(new FakeOperation { ThrowOnExecute = error, ErrorCount = 2 }); sut.Initialize(new FakeWorkflowConfiguration { Logger = log }); sut.Execute(); Assert.Equal(2, log.AppliedBehaviors.Count); Assert.Equal("Operation retried", log.AppliedBehaviors[0].Description); }