-
Notifications
You must be signed in to change notification settings - Fork 57
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
Feature: Capture and rethrow errors into the "it"s #201
Comments
I can try and find the time to create a PR for this over the next few weeks, but I was REALLY hoping the project had moved on from |
@BennieCopeland there shouldn't be any "bare" code within the blocks. You need to put int someValue = int.MaxValue;
MyClass myClass = null;
bool expectException = false;
Action action = null; into the |
@amirrajan That fails to build because the variables are now out of scope. |
you have to make all your variables members of the test (class level). |
That would work, but it could lead to a lot of variables at the |
It would be nice to be able to do something like the following.
For singular cases, maybe something like this:
I'm currently doing the following as a workaround, but a built in feature like above would be nice.
The text was updated successfully, but these errors were encountered: