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

Make event accessor recognition logic more correct #376

Merged
merged 1 commit into from
Jun 16, 2017

Commits on Jun 16, 2017

  1. Make event accessor recognition logic more correct

    Up until now, if Moq encounters a method named `add_X` or `remove_X`
    it will assume that it's found an specialname event accessor method
    without performing any further checks.
    
    This commits adds some trivial type checks and null reference checks
    to improve that logic somewhat. I hesitate to make this too perfect
    since that just might break things for F# or COM (see commit 44070a9).
    stakx committed Jun 16, 2017
    Configuration menu
    Copy the full SHA
    63750bb View commit details
    Browse the repository at this point in the history