Is it possible to write code like the following. I'm trying to using
Moq with objects that I'm reflecting on as part of a testing
framework. The code below raises a "Unhandled expression type: 'Goto'"
exception from Moq, which I guess is expecting something different. It
kind of looks like it should work though!
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.