public void TestMethodAssert() { using (MyWebServiceTest.MyWebServiceSoapClient client = new MyWebServiceTest.MyWebServiceSoapClient()) { Assert.AreEqual(client.Plus(12, 33), 45); Assert.AreEqual(client.Plus(12, 44), 56); Assert.AreEqual(client.Plus(12, 55), 67); Assert.AreEqual(client.Plus(12, 66), 45); } }
public void TestMethod() { using (MyWebServiceTest.MyWebServiceSoapClient client = new MyWebServiceTest.MyWebServiceSoapClient()) { MyWebServiceTest.CustomSoapHeader header = new MyWebServiceTest.CustomSoapHeader(); header.UserName = "******"; header.PassWord = "******"; int iResult = client.Plus(12, 33);//45 MyWebServiceTest.UserInfo userInfo = client.GetUser(header, 1); //List<MyWebServiceTest.UserInfo> userList = client.GetUserList(header); var userList = client.GetUserList(header); } }