Solved

Unit Testing With VS2008

Posted on 2011-09-18
3
258 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

863 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

24 Experts available now in Live!

Get 1:1 Help Now