public void Must_parse_correctly(string headerValue) { RefererHeader header = RefererHeader.Parse(headerValue); Assert.That(header, Is.Not.Null); Assert.That(header.Url, Is.EqualTo(new Uri(headerValue, UriKind.RelativeOrAbsolute))); }
public void Must_not_result_in_header(string headerValue) { Assert.That(RefererHeader.Parse(headerValue), Is.Null); }