Ejemplo n.º 1
0
            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)));
            }
Ejemplo n.º 2
0
 public void Must_not_result_in_header(string headerValue)
 {
     Assert.That(RefererHeader.Parse(headerValue), Is.Null);
 }