Created
August 7, 2013 02:22
-
-
Save plioi/6170669 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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