I need to create a lambda expression for unit testing in C#

The HtmlHelper I created accepts a lambda such as:

model => model.EmailAddr

and the helper works fine when its my View creating the lamda. But I need to create it in my unit test and am not sure of the syntax to creates it.

Does anyone know?

newbiewebSr. Software EngineerAsked:
Who is Participating?
Easwaran ParamasivamCommented:
newbiewebSr. Software EngineerAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.