TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ana Ana
NA
11
11.2k
Unit test for insert method
Mar 7 2011 3:49 AM
How can I test some 'Insert method' in c# Unit test generated code, where I didn't get the actual and expected values
for insert method?
Can I create a actual and expected variables and run it?
Code:
[TestMethod()]
public void InsertCustomerTest()
{
string FirstName = "test"; // TODO: Initialize to an appropriate value
string LastName = "test"; // TODO: Initialize to an appropriate value
string Password = "test"; // TODO: Initialize to an appropriate value
string Email = "
[email protected]
"; // TODO: Initialize to an appropriate value
string Address = "test"; // TODO: Initialize to an appropriate value
string City = "test"; // TODO: Initialize to an appropriate value
string ZipCode = "test"; // TODO: Initialize to an appropriate value
int CountryId = 20; // TODO: Initialize to an appropriate value
string Phone = "test"; // TODO: Initialize to an appropriate value
string Skype = "test"; // TODO: Initialize to an appropriate value
string AIM = "test"; // TODO: Initialize to an appropriate value
string Yahoo = "test"; // TODO: Initialize to an appropriate value
string MSN = "test"; // TODO: Initialize to an appropriate value
string MedicalConditions = "test"; // TODO: Initialize to an appropriate value
CustomerManager.InsertCustomer(FirstName, LastName, Password, Email, Address, City, ZipCode, CountryId, Phone, Skype, AIM, Yahoo, MSN, MedicalConditions);
Reply
Answers (
9
)
Error message in unit testing
Get the character from KeyUp event of textbox