From: benny <ceddlybu...@googlemail.com>
Date: Tue, 27 Sep 2011 01:39:10 -0700 (PDT)
Local: Tues, Sep 27 2011 4:39 am
Subject: Re: Passing expression trees into Moq
Thanks, I like the idea of creating an expression lamba normally and
then inspecting the expression tree that gets created. I'll give it a go. On Sep 22, 3:46 pm, Daniel Cazzulino <dan...@cazzulino.com> wrote:
> 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
> --
> On Thu, Sep 22, 2011 at 05:59, benny <ceddlybu...@googlemail.com> wrote:
> > 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.
| ||||||||||||||