Archive

Posts Tagged ‘testing’

Displaying a nested evaluation tree from Expression<Func>

February 13, 2009 2 comments

Updated: The downloadable source (see link below) is now tidied up a bit, and also displays any embedded string comparisons in a similar way to NUnit.

This might be useful as a way to write Assert statements in tests. Instead of requiring many different forms of Assert to capture values and intents, we could just have one Assert that accepts a lambda:

Read more…

Advertisements