Skip to content

This project compares two lambda expressions recursively traversing their trees.

License

Notifications You must be signed in to change notification settings

nullptre/LambdaCompare

Repository files navigation

Neleus.LambdaCompare

This project compares two lambda expressions recursively traversing their trees.

It doesn't use strict expression tree comparison. Instead, it collapses constant expressions and compares their values rather than their trees. It's useful for mocks validation when the lambda has a reference to a local variable. In his case the variable is compared by its value. See unit tests for examples.

See also origin https://stackoverflow.com/a/24528357/2528649

About

This project compares two lambda expressions recursively traversing their trees.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages