Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raise doesnt work when the event handler signature has one parameter #127

Closed
felixwatts opened this issue Aug 13, 2014 · 1 comment
Closed

Comments

@felixwatts
Copy link

interface MyClass {
    event Action<int> ANumberChanged;    
}

var m = new Mock<MyClass>();
m.Raise(x => x.ANumberChanged += null, 1); // throws TargetParameterCountException :(
@stakx
Copy link
Contributor

stakx commented Jun 20, 2017

This reported error is no longer reproducible. Please update to a current version of Moq (4.7.58 at the time of writing) and this problem should go away.

@stakx stakx closed this as completed Jun 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants