Solved

Unit Testing With VS2008

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

746 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

13 Experts available now in Live!

Get 1:1 Help Now