NUnit

M

Mark

I'm using NUnit with an ASP.NET .dll ... looking for recommendations:

1. Put the Test class in the same project (.dll) as the class that is being
tested?
2. Put the Test class in the same namespace as the class that is being
tested?
3. Put the Test class in the same fodler as the class that is being tested?

What works best over the long haul?

Thanks in advance.

Mark
 
P

Peter Rilling

Actually none are the preferred method (in my opinion). I would create a
separate project that holds all your unit tests. The namespace you choose
is actually up to you, but I usually like to isolate them from the classes
being tested.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top