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

Corrected Verify method behavior for generic methods calls #25

Merged
merged 3 commits into from
Sep 21, 2012
Merged

Corrected Verify method behavior for generic methods calls #25

merged 3 commits into from
Sep 21, 2012

Commits on Aug 6, 2012

  1. corrected Verify method behavior for generic methods calls like:

    public interface IBaz
    {
    	void Call<T>(T param) where T:IBazParam;
    }
    public void MatchesDerivedTypesForGenericTypes()
    {
    	var mock = new Mock<IBaz>();
    	mock.Object.Call(new BazParam());
    	mock.Object.Call(new BazParam2());
    	mock.Verify(foo => foo.Call(It.IsAny<IBazParam>()), Times.Exactly(2));
    }
    wojtek committed Aug 6, 2012
    Configuration menu
    Copy the full SHA
    1544e61 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9adec25 View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2012

  1. corrected small typo

    wojtek committed Aug 30, 2012
    Configuration menu
    Copy the full SHA
    c8687b8 View commit details
    Browse the repository at this point in the history