Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
QuestionNUnit test framework Pin
User 5838523-Apr-13 16:34
User 5838523-Apr-13 16:34 
AnswerRe: NUnit test framework Pin
Pete O'Hanlon3-Apr-13 20:21
mvePete O'Hanlon3-Apr-13 20:21 
GeneralRe: NUnit test framework Pin
User 5838523-Apr-13 20:43
User 5838523-Apr-13 20:43 
AnswerRe: NUnit test framework Pin
Abhinav S3-Apr-13 20:30
Abhinav S3-Apr-13 20:30 
AnswerRe: NUnit test framework Pin
Bernhard Hiller3-Apr-13 21:18
Bernhard Hiller3-Apr-13 21:18 
AnswerRe: NUnit test framework Pin
BobJanova3-Apr-13 23:31
BobJanova3-Apr-13 23:31 
AnswerRe: NUnit test framework Pin
Keith Barrow4-Apr-13 1:55
professionalKeith Barrow4-Apr-13 1:55 
AnswerRe: NUnit test framework Pin
jschell4-Apr-13 9:15
jschell4-Apr-13 9:15 
_Josh_ wrote:
I'm just stunned at how bad this appears. Surely tests lose most of their value
when they are hard to execute?


You probably should read up on the philosophy of unit tests. The point isn't to allow you to debug it - not even close to that.

But the following process works if you can't get the IDE to work.
1. Determine something is failing.
2. Open the VS IDE and the project.
3. Add the following at a point that it relevant to the failure, perhaps at the top of the unit test.

C#
System.Diagnostics.Debug.Assert(false);


4. Build in Debug mode.
5. Run the unit test with the GUI version of Nunit.
6. When it hits the above line it will pop a dialog asking if you want to debug the application and present you with your choice of debuggers. Pick the IDE from 2.
7. It will resolve itself to a break point marked in your IDE at the above line.
8. After that you can step through and do anything thing else the debugger allows.

Might note that I prefer the above process versus running unit tests in the IDE.


_Josh_ wrote:
Is it possible to add a Main() to my test project and just run the tests?


Of course - after all that is exactly what the Nunit command line and GUI tools do.
Questionuse a class methode that implements and interface from another class Pin
tux@ddictor3-Apr-13 7:49
tux@ddictor3-Apr-13 7:49 
AnswerRe: use a class methode that implements and interface from another class Pin
tux@ddictor3-Apr-13 7:53
tux@ddictor3-Apr-13 7:53 
QuestionC# Pin
sanjugen3-Apr-13 0:07
sanjugen3-Apr-13 0:07 
AnswerRe: C# Pin
cursore843-Apr-13 0:31
cursore843-Apr-13 0:31 
AnswerRe: C# Pin
Simon_Whale3-Apr-13 0:58
Simon_Whale3-Apr-13 0:58 
AnswerRe: C# Pin
Abhinav S3-Apr-13 3:13
Abhinav S3-Apr-13 3:13 
Questiongoogle calendar api .net Pin
cursore842-Apr-13 23:06
cursore842-Apr-13 23:06 
QuestionRe: google calendar api .net Pin
Eddy Vluggen3-Apr-13 6:57
professionalEddy Vluggen3-Apr-13 6:57 
AnswerRe: google calendar api .net Pin
cursore843-Apr-13 7:34
cursore843-Apr-13 7:34 
AnswerRe: google calendar api .net Pin
Eddy Vluggen3-Apr-13 8:40
professionalEddy Vluggen3-Apr-13 8:40 
GeneralRe: google calendar api .net Pin
cursore843-Apr-13 9:30
cursore843-Apr-13 9:30 
GeneralRe: google calendar api .net Pin
Eddy Vluggen3-Apr-13 22:41
professionalEddy Vluggen3-Apr-13 22:41 
QuestionImpoting Dataview to Doc Pin
vpasuleti2-Apr-13 20:29
vpasuleti2-Apr-13 20:29 
AnswerRe: Impoting Dataview to Doc Pin
Richard MacCutchan2-Apr-13 22:03
mveRichard MacCutchan2-Apr-13 22:03 
AnswerRe: Impoting Dataview to Doc Pin
Abhinav S3-Apr-13 3:16
Abhinav S3-Apr-13 3:16 
Questionobject reference not set to an instance of an object Pin
surya 20132-Apr-13 18:50
surya 20132-Apr-13 18:50 
AnswerRe: object reference not set to an instance of an object Pin
Chinmaya C2-Apr-13 19:24
Chinmaya C2-Apr-13 19:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.