kolan72 / PoliNorError

PoliNorError is a library that provides error handling capabilities through Retry and Fallback policies. The library has a specific focus on handling potential exceptions within the catch block and offers various configuration options.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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());
}