Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
In my solution I added an unit test project where I added a service reference and need to test that method which is returning bool value.

How can I test it?

TestMethod]
public bool ValidateUser()
{
bool Result = false;
UserLoginArgs loginArgs = new UserLoginArgs();
loginArgs.UserId = "User_00001";
loginArgs.Password = ActorType.Doctor.ToString();
loginArgs.GroupId = "Group_123";
//service.ValidateUser(loginArgs);
ServiceReference1.UserLoginServiceClient client = new ServiceReference1.UserLoginServiceClient();
}


When right clicking on this method and click Debug Tests breaskpoint is not firing?.
Please explain me with an example

Thank You
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900