From: Daniel Cazzulino <dan...@cazzulino.com>
Date: Thu, 22 Sep 2011 11:46:28 -0300
Local: Thurs, Sep 22 2011 10:46 am
Subject: Re: [Moq] Passing expression trees into Moq
Expression.Return(Expression.Label(), that's wrong. you're not returning a label. best way to go about this is to create the expression lambda with C# (v => /kzu -- > private void button1_Click(object sender, EventArgs e) > // Create input parameter for lambda > // create return statement for lambda > // convert expression to lambda (should now be the equivalent > var mockFoo = new Mock<IFoo>(); > mockFoo.SetupProperty(func); // exception thrown by moq here, > -- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||