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

Support argument matching in Throws (similar to ReturnsLazily and Invokes) #21

Closed
philippdolder opened this issue Sep 10, 2012 · 3 comments
Assignees
Milestone

Comments

@philippdolder
Copy link
Member

No description provided.

@ghost ghost assigned philippdolder Sep 10, 2012
@patrik-hagne
Copy link
Member

It does doesn't it? Example?

@philippdolder
Copy link
Member Author

It supports it basically, yes.
But I like it to have the same extensions as I did previously for the two mentioned features. Have overloads that support argument verification for up to 4 arguments for easier usage and comprehensive error messages.

        var fake = A.Fake<IInterface>();
        A.CallTo(() => fake.ActionOfFour(A<int>._, A<int>._, A<int>._, A<int>._))
            .Throws((string s, int i, int j, int l) => new MyException(s, i, j, l));

I already did the pull request. We just need to merge it.
#24

@patrik-hagne
Copy link
Member

Ahh, I see, I totally misunderstood! Great job, will you merge it or should I?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants