473,386 Members | 1,815 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

NUnit

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
Nov 16 '05 #1
2 1718
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.

"Mark" <Ma**@nowhere.com> wrote in message
news:#v**************@TK2MSFTNGP12.phx.gbl...
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

Nov 16 '05 #2
That is the procedure we follow here as well. Seperate project.

--
Gerry O'Brien
Visual Basic.NET MVP
"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:em*************@TK2MSFTNGP14.phx.gbl...
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.

"Mark" <Ma**@nowhere.com> wrote in message
news:#v**************@TK2MSFTNGP12.phx.gbl...
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


Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Peter Rilling | last post by:
My development team is using VS.NET with VSS integration. They are able to check in and out from within VS.NET. We also use NUnit for testing our libraries. Currently our entire solution is...
1
by: Klas Mellbourn | last post by:
I have several assemblies, in separate dll:s, each with nunit tests embedded. Every assembly requires its own config file. I would like to run all nunit tests on the same command line. Like this: ...
2
by: d2d | last post by:
How are you doing there folks? I just have this newbie question about how to compile an NUnit test file from command line using "csc.exe" I installed NUnit 2.1 using *.msi file. I was...
1
by: Justin D. Fisher | last post by:
Anyone out there use NUnit for unit level testing on VB.Net? I see lots of C# documentation out there but very little for VB.Net? Can anyone suggest some books or web sites that address this?
0
by: Ray Tayek | last post by:
hi, getting a: .\Stdafx.cpp : fatal error C1192: #using failed on 'i: nunit\samples\cpp-sample"' 'The filename, directory name, or volume label syntax is incorrect.' nunit is installed in...
6
by: Ray Tayek | last post by:
hi, i am preparing to teach a class in c++ and would like to intoduce some unit testing. i can make unit tests in c# using this dll and nant from the command line. i am using visual c++ 2005...
20
by: Parag | last post by:
Hi, I am trying to figure out best testing tool for my project. I have narrowed down my requirements to two tools NUNIT and VSTS unit. But I have used neither and I have to use only one of them....
6
by: tchaiket | last post by:
Hey all, I'm using NUNIT to test our classes. However, I don't want to hard code test data into the NUNIT classes. For example, to test adding a new Client, I don't want to hard code the...
2
by: JohnGoogle | last post by:
Hi, I'm a newbie so sorry if there is a simple answer to this! I'm using C# in Visual Studio Express at the moment. I've downloaded NUnit v 2.2.8 and can load and run the tests they supply...
1
by: nyathancha | last post by:
Hi, I am using WSE to implement security using x509 certificates. This works when I use a windows client but throws an exception when I use NUnit. My Code looks as follows : UsernameToken...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.