Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Runing Unit Test does not end - in Visual Studio 2010

Posted on 2013-06-04
6
Medium Priority
?
374 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this article I discuss my selections of the Top Four free Outlook OST File Viewers available. Open, view and read even damaged OST files by using these tools. They all provide a clear preview of all data such as emails, notes, tasks, calendars, e…
I originally wrote this article to compare SARDU and YUMI, but have now added Easy2Boot, since that is the one I currently use and find the easiest to create and alter.
Using Adobe Premiere Pro, the viewer will learn how to set up a sequence with proper settings, importing pictures, rendering, and exporting the finished product.
An overview on how to enroll an hourly employee into the employee database and how to give them access into the clock in terminal.

597 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