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

philippdolder opened this Issue Sep 10, 2012 · 3 comments


None yet

2 participants


No description provided.


It does doesn't it? Example?


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.


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