Catch Exclusion
Catch Exclusion
Hello, Newbie from NCover, I use it with TestDriven.
It works fine, but i can't go to 100% becaus i've lot of try catch statement and it never go (fortunatly) in my catches ...
Is there any way to exclude a piece of Code or generally all catches statement ?
Thanks.
RE: Catch Exclusion
There is no way to exclude a particular piece of code. Recommended test practice in these cases is to force the exception to happen if possible, and if not, then to use a tool like typemock to throw the exception behind the scenes.