Skip to content

Conversation

mbalzert1978
Copy link

Changes:

Implementation:

The methods IsOkAnd and IsErrAnd have been added to allow checking the status of Result objects.
Both methods accept a predicate delegate that is applied to the corresponding value when the result is in the desired state.

Null Check:

Ensured that the predicates are checked for null before being applied to the values to avoid null reference exceptions.

Documentation:

XML documentation for the new methods has been added to clarify their usage and functionality.

Tests:

Unit tests have been written to verify the correct functionality of the new methods and to ensure that the predicates are evaluated properly.
All new tests have passed successfully, confirming the correct implementation of the functionality.

Motivation:

The introduction of these methods enhances the handling of Result objects by providing a clearer and safer way to check the status of results and validate associated conditions. This contributes to more robust error handling in the application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants