Solved

Runing Unit Test does not end - in Visual Studio 2010

Posted on 2013-06-04
6
356 Views
Last Modified: 2014-01-29
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
0
Comment
Question by:tommym121
  • 3
  • 3
6 Comments
 
LVL 74

Expert Comment

by:käµfm³d 👽
ID: 39220875
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.
0
 

Author Comment

by:tommym121
ID: 39220894
I set a break point within the FullnameTest () but it does not even get in to the function.  What can it be doing?
0
 
LVL 74

Expert Comment

by:käµfm³d 👽
ID: 39221815
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.
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:tommym121
ID: 39222499
Attached is what I see when I select to debug
capture01.png
0
 
LVL 74

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 39222553
If you put your cursor inside of that test method and click this button:

Screenshot
...which should be somewhere on your toolbar (just below the menu bar), then you should hit that breakpoint that you set.

Screenshot
0
 

Author Comment

by:tommym121
ID: 39222692
I do exactly what you post. But I do not get what you have. See my capture01.png above
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Suggested Solutions

Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Viewers will learn how to use the Hootsuite Dashboard.
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now