yuriy-nelipovich / LambdaCompare

This project compares two lambda expressions recursively traversing their trees.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:MIT License


Languages

Language:C# 100.0%