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)); }
public void Must_not_result_in_header(string headerValue) { Assert.That(BasicProxyAuthorizationHeader.Parse(headerValue), Is.Null); }