public void UploadValuesTest() { string serverURL = "http://localhost:8080"; string username = "******"; string password = "******"; XWikiHTTPClient target = new XWikiHTTPClient(serverURL, username, password); target.WebClient = new WebClientMock(); string address = "http://localhost:8080"; NameValueCollection values = new NameValueCollection(); byte[] expected = WebClientMock.responseOK; byte[] actual; actual = target.UploadValues(address, values); Assert.AreEqual(expected, actual); }
public void UploadValuesTest1() { string serverURL = "http://localhost:8080"; string username = "******"; string password = "******"; XWikiHTTPClient target = new XWikiHTTPClient(serverURL, username, password); target.WebClient = new WebClientMock(); string address = string.Empty; string method = string.Empty; NameValueCollection values = null; byte[] expected = WebClientMock.responseOK; byte[] actual; actual = target.UploadValues(address, method, values); }