Skip to content

Latest commit

 

History

History
8 lines (5 loc) · 478 Bytes

README.md

File metadata and controls

8 lines (5 loc) · 478 Bytes

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