public void GetAuthenticationHeader() { byte[] encodedValues = Encoding.ASCII.GetBytes(string.Concat("admin", ":", "password")); AuthenticationHeaderValue header = new AuthenticationHeaderValue("Authorization", Convert.ToBase64String(encodedValues)); AuthenticationHeader authToSend = new AuthenticationHeader("admin", "password"); HttpRequestInfo requestInfo = new HttpRequestInfo(string.Empty, RequestType.Get, null, authToSend); Assert.IsNotNull(requestInfo.GetHeader()); Assert.AreEqual(header, requestInfo.GetHeader()); }