Solved

Runing Unit Test does not end - in Visual Studio 2010

Posted on 2013-06-04
6
360 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 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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

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 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

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…
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

895 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

11 Experts available now in Live!

Get 1:1 Help Now