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

Should Throw: ability to indicate expected type of exception #659

Closed
cheretbe opened this issue Dec 13, 2016 · 2 comments
Closed

Should Throw: ability to indicate expected type of exception #659

cheretbe opened this issue Dec 13, 2016 · 2 comments

Comments

@cheretbe
Copy link

It would be nice to have the ability to indicate not only an expected message, but also an exception type in Should Throw.
Like this, for example:

{ throw [System.IO.FileNotFoundException] "file not found" } | Should Throw [System.IO.FileNotFoundException]

The same error might be represented by different messages on systems with different localizations and using exception type could come in quite handy.

@nohwnd
Copy link
Member

nohwnd commented Dec 13, 2016

please see #279

@nohwnd nohwnd closed this as completed Dec 13, 2016
@cheretbe
Copy link
Author

Ah! Ok, thanks.

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

No branches or pull requests

2 participants