GetAuthCredentials() public method

public GetAuthCredentials ( IWebBrowser browser, bool isProxy, string host, int port, string realm, string scheme, string &username, string &password ) : bool
browser IWebBrowser
isProxy bool
host string
port int
realm string
scheme string
username string
password string
return bool
Example #1
0
        public void BrowserHandler_GetAuthCredentials_SchemeIsNotNtlm_False()
        {
            //------------Setup for test--------------------------
            var handler = new BrowserHandler(new Mock<IBrowserPopupController>().Object);

            //------------Execute Test---------------------------
            var password = "";
            var username = "";
            var result = handler.GetAuthCredentials(new Mock<IWebBrowser>().Object, false, "", 0, "", "Basic", ref username, ref password);

            //------------Assert Results-------------------------
            Assert.IsFalse(result);
        }