Ana Ana

Ana Ana

  • NA
  • 11
  • 11.1k

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




Answers (9)