Re: NUnit Test
- From: Jon Skeet [C# MVP] <skeet@xxxxxxxxx>
- Date: Sun, 16 Apr 2006 17:26:17 +0100
Ether.Sysu <zsuboy@xxxxxxxx> wrote:
At last, i use class Type's member function InvokeMember(...) to invoke
the private function.
By the way, the code i'm going to test is written by myself. If test
the code by tracing it step by step(F11 in visual studio 2003) is a
good habit?
There are people who swear by tracing through the code line by line
manually. I far prefer unit testing, because it means when I've changed
one bit of code I don't need to run through *everything* manually
again.
I only use the debugger when something isn't working as I expect it to,
after thinking about it for a while. Apart from when I'm investigating
the behaviour of someone else's library, I regard needing to go into
the debugger as a bit of a personal failure. That's not to say it's not
invaluable when you get to that stage, but I tend to think that if what
the code does isn't obvious just by looking at it, then I've got a bit
of a problem beyond it not working properly.
--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
.
- References:
- NUnit Test
- From: Ether.Sysu
- Re: NUnit Test
- From: Mike Schilling
- Re: NUnit Test
- From: Ether.Sysu
- NUnit Test
- Prev by Date: Re: Webrequest and Timeout
- Next by Date: Re: a question about datagridview control
- Previous by thread: Re: NUnit Test
- Next by thread: Redeclare an array;what happens to its objects?
- Index(es):
Relevant Pages
|