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

Matcher should always work with the whole expression, including Convert #56

Merged
merged 1 commit into from
Sep 26, 2013

Commits on Sep 26, 2013

  1. Matcher should always work with the whole expression, including Convert

    Without this change, the following code doesn't work correctly,
    because the passed in long is compared against int.
    
    interface IFoo
    {
        string M(long l);
    }
    
    var mock = new Mock<IFoo>(MockBehavior.Strict);
    mock.Setup(x => x.M(int.Parse("2"))).Returns("OK");
    var result = mock.Object.M(2L);
    svick committed Sep 26, 2013
    Configuration menu
    Copy the full SHA
    8297c6a View commit details
    Browse the repository at this point in the history