Skip to content

Instantly share code, notes, and snippets.

@plioi
Created August 7, 2013 02:22
Show Gist options
  • Save plioi/6170669 to your computer and use it in GitHub Desktop.
Save plioi/6170669 to your computer and use it in GitHub Desktop.
object instance;
var constructionExceptions = Construct(testClass, out instance);
if (constructionExceptions.Any())
{
foreach (var @case in cases)
@case.Exceptions.Add(constructionExceptions);
}
else
{
//...run all the test cases here, collecting exceptions along the way...
var disposalExceptions = Dispose(instance);
if (disposalExceptions.Any())
{
foreach (var @case in cases)
@case.Exceptions.Add(disposalExceptions);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment