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

Closed
philippdolder opened this Issue Sep 10, 2012 · 3 comments

Projects

None yet

2 participants

@philippdolder
Member

No description provided.

Member

It does doesn't it? Example?

Member

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

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