Re: TypeInitializationException / forcing all static c'tors to run on startup



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

.



Relevant Pages

  • Re: unit testing in vs.net 2005?
    ... > and Team System for Testers. ... > get an integrated experience by using NUnit and TestDriven.NET. ... sales of VSTS to include unit testing in Pro (or even Express, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: unit testing in vs.net 2005?
    ... it is these business decision that might make ... people choose not to use their testing framework. ... shelling out thousands for the IDE, but they still want unit testing. ... > get an integrated experience by using NUnit and TestDriven.NET. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Unit testing, code coverage, performance tools for winCE
    ... "Orcas" MS provides unit testing for devices. ... I did see that someone has done a port of nunit to the compact framework. ... As far as performace tools there is a profiler for CE as well as for CF ... curious to know if there are any unit testing, code coverage and ...
    (microsoft.public.windowsce.embedded)
  • Re: NUnit and C#
    ... If you make unit testing with NUnit part ... its final state - and noone tought of using Nunit in the planning state - so ... are realized in private methods in inherited or abstract clases - and NUnit ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: TypeInitializationException / forcing all static ctors to run on startup
    ... implying no run-time unit testing. ... NUnit is specifically for frequent unit testing. ...
    (microsoft.public.dotnet.languages.csharp)

Quantcast