Link to home
Start Free TrialLog in
Avatar of tommym121
tommym121Flag for Canada

asked on

Runing Unit Test does not end - in Visual Studio 2010

I am try to learn to do unit test.  However, when I run the test, it is never finished.  Not sure why? any idea.  
The function Fullname () returns the first name + last name.
And the function FullnameTest () is to test if Fullname return the right value

Attached file is the screen shot
Capture.JPG
Avatar of kaufmed
kaufmed
Flag of United States of America image

Have you tried debugging through your test to see if anything is causing it to hang (not that it should, based on what you posted in your screenshot)? You can put a breakpoint within your test and then run "Debug Tests" rather than "Run Tests" to hit the breakpoint. Standard debugging controls (i.e. key presses) apply at that point.
Avatar of tommym121

ASKER

I set a break point within the FullnameTest () but it does not even get in to the function.  What can it be doing?
To confirm:  Did you "debug" the test or did you "run" the test. The latter won't hit the breakpoint. I can provide you a screenshot in a little while when I get to work. I don't have 2010 installed on my home machine.
Attached is what I see when I select to debug
capture01.png
ASKER CERTIFIED SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I do exactly what you post. But I do not get what you have. See my capture01.png above