Created
January 21, 2015 17:48
Example of using the finally clause to clean up
This file contains 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
try | |
{ | |
SetupTestConditions() | |
} | |
catch (Exception ex) | |
{ | |
Assert.Fail(); | |
} | |
finally | |
{ | |
TearDownTestConditions(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment