Re: TypeInitializationException / forcing all static c'tors to run on startup
- From: "Zytan" <zytanlithium@xxxxxxxxx>
- Date: 2 Mar 2007 08:38:36 -0800
Even for a really small project, I'd use NUnit. Others recommend
MbUnit, but I don't know that that's any more suitable for small
projects than NUnit is.
Once you've used NUnit a few times, you'll think nothing of using it,
however small the project. Although I tend to put the tests into a
different project, you don't *have* to, if that's more overhead than
you want.
Ok, NUnit it is.
But wait. I consider TWO types of unit testing, something I've
conceived myself:
1. run-time unit testing that test a short sample, quickly, that does
as much as it can without getting in the way, which is removed for
final production. This shows incorrect code immediately on the next
run. It's the fastest unit testing feedback possible.
2. indepth testing, overnight testing, that runs for hours, testing
everything. This has everything that #1 can't have since it takes too
long.
Does NUnit do #1 as well? If not, it's not good enough. I thought I
should ask, since you said you put your unit testing in another
project, implying no run-time unit testing. (by 'run time', I just
mean it is run on every execute, preferably at the START, which is why
I want to run all my static c'tor on load.)
Zytan
.
- Follow-Ups:
- Re: TypeInitializationException / forcing all static c'tors to run on startup
- From: Jon Skeet [C# MVP]
- Re: TypeInitializationException / forcing all static c'tors to run on startup
- References:
- TypeInitializationException / forcing all static c'tors to run on startup
- From: Zytan
- Re: TypeInitializationException / forcing all static c'tors to run on startup
- From: Jon Skeet [C# MVP]
- Re: TypeInitializationException / forcing all static c'tors to run on startup
- From: Zytan
- Re: TypeInitializationException / forcing all static c'tors to run on startup
- From: Jon Skeet [C# MVP]
- Re: TypeInitializationException / forcing all static c'tors to run on startup
- From: Zytan
- Re: TypeInitializationException / forcing all static c'tors to run on startup
- From: Zytan
- Re: TypeInitializationException / forcing all static c'tors to run on startup
- From: Jon Skeet [C# MVP]
- TypeInitializationException / forcing all static c'tors to run on startup
- Prev by Date: Re: System.DirectoryServices - Constraint violation
- Next by Date: Re: StreamReader / StreamWriter vs System.IO.File.*?
- Previous by thread: Re: TypeInitializationException / forcing all static c'tors to run on startup
- Next by thread: Re: TypeInitializationException / forcing all static c'tors to run on startup
- Index(es):
Relevant Pages
|