Beispiel #1
0
            public void Must_parse_correctly(string headerValue, string expectedUserid, string expectedPassword)
            {
                BasicProxyAuthorizationHeader header = BasicProxyAuthorizationHeader.Parse(headerValue);

                Assert.That(header, Is.Not.Null);
                Assert.That(header.AuthScheme, Is.StringMatching("[Bb]asic"));
                Assert.That(header.Userid, Is.EqualTo(expectedUserid));
                Assert.That(header.Password, Is.EqualTo(expectedPassword));
            }
Beispiel #2
0
 public void Must_not_result_in_header(string headerValue)
 {
     Assert.That(BasicProxyAuthorizationHeader.Parse(headerValue), Is.Null);
 }