-
Notifications
You must be signed in to change notification settings - Fork 21
Improve ShouldRedirectTo<TController> exception message #47
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
Comments
Or we can make that scenario work. I don't see why that shouldn't pass...
|
I wasn't too sure why it didn't pass either. I assumed that you did it on purpose? |
No. It's an oversight ;)
|
Yeah of course. I will remove the |
Thank you for your input in all cases. |
When the consumer calls
ShouldRedirectTo<TController>
whereTController
is of the same type as the controller under test like this:The assertion fails with the following error:
I encountered this error message when I mistakenly supplied the generic type argument. I knew to remove it because I have some experience with this library.
Maybe I am dumb or maybe this is a common mistake. Might it be helpful to change the exception message to something like this:
The text was updated successfully, but these errors were encountered: