?
Solved

Runing Unit Test does not end - in Visual Studio 2010

Posted on 2013-06-04
6
Medium Priority
?
370 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 75

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 75

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
Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

 

Author Comment

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

Accepted Solution

by:
käµfm³d   👽 earned 1000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Healthcare organizations in the United States must adhere to the guidance of both the HIPAA (Health Insurance Portability and Accountability Act) and HITECH (Health Information Technology for Economic and Clinical Health Act) for securing and protec…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

764 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