Click here to Skip to main content
15,899,124 members
Home / Discussions / C#
   

C#

 
GeneralRe: hello Pin
Keith Barrow4-Apr-13 4:36
professionalKeith Barrow4-Apr-13 4:36 
AnswerRe: hello Pin
Keith Barrow4-Apr-13 4:36
professionalKeith Barrow4-Apr-13 4:36 
GeneralRe: hello Pin
youshy4-Apr-13 4:57
youshy4-Apr-13 4:57 
GeneralRe: hello Pin
Pete O'Hanlon4-Apr-13 5:09
mvePete O'Hanlon4-Apr-13 5:09 
GeneralRe: hello Pin
youshy4-Apr-13 6:54
youshy4-Apr-13 6:54 
GeneralRe: hello Pin
Keith Barrow4-Apr-13 5:15
professionalKeith Barrow4-Apr-13 5:15 
GeneralRe: hello Pin
youshy4-Apr-13 6:53
youshy4-Apr-13 6:53 
QuestionUSB devices, WMI and C# Pin
MarkB7774-Apr-13 0:22
MarkB7774-Apr-13 0:22 
AnswerRe: USB devices, WMI and C# Pin
Kenneth Haugland4-Apr-13 1:24
mvaKenneth Haugland4-Apr-13 1:24 
QuestionRock_Monu import a doc file in sql...??? Pin
rock_monu3-Apr-13 21:49
rock_monu3-Apr-13 21:49 
QuestionRe: Rock_Monu import a doc file in sql...??? Pin
Richard MacCutchan3-Apr-13 22:08
mveRichard MacCutchan3-Apr-13 22:08 
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 

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.