The handling of a `PolicyDelegateCollection` should fail fast when the collection was obtained from a `PolicyCollection` and the delegate is null.
kolan72 opened this issue · comments
For example, this test for handling Action
failed, but it should be green:
[Test]
public void Should_PolicyDelegateCollection_From_PolicyCollection_Handling_FailFast_For_Null_Action()
{
var polCollection = PolicyCollection.Create()
.WithRetry(1)
.WithRetry(1);
Action act = null;
var result = polCollection.HandleDelegate(act);
Assert.AreEqual(0, result.Count());
}