Solved

Unit Testing With VS2008

Posted on 2011-09-18
3
259 Views
Last Modified: 2012-05-12
i am trying to create a unit test in VS 2008 on a particular business object.  The steps I took were to right click on Public Class Items and then click Create Unit Test.  There are six methods implemented in Class Items and all appear in the ItemsTest Class that was created.  

The problem I am having is I am getting errors on the line that says

actual = target MethodName(parameters)

It complains that the method is not a member of the target class which is defined as
Dim target As Items = New Items

Can anyone tell me what the issue is here?



0
Comment
Question by:sherbug1015
3 Comments
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 500 total points
ID: 36557412
Could you post the actual code. There is at least one mistake what you posted (no dot between target and MethodName). Sending similar code or code that you type by hand never gives the right picture or the whole picture and does not enable us to see what the problem could be.
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 36557719
>>Zones: SQL Server 2008, Microsoft Visual Basic.Net<<
Has this question got anything to do with SQL Serfver 2008?
0
 

Author Comment

by:sherbug1015
ID: 36561337
JamesBurger:  Thanks for your answer, but I realized that I had to fully qualify the method name.  
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help with error when uploading excel file 3 29
VB: Convert 2 dates to specific format 24 48
Help with exporting to excel 4 28
location of a form 2 15
Long way back, we had to take help from third party tools in order to encrypt and decrypt data.  Gradually Microsoft understood the need for this feature and started to implement it by building functionality into SQL Server. Finally, with SQL 2008, …
SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

822 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