Exemplo n.º 1
0
            public void Must_parse_correctly(object[] parameters)
            {
                var headerValue = (string)parameters[0];
                IEnumerable <string>      methods = parameters.Where((arg, i) => i > 0).Cast <string>();
                IEnumerable <AllowHeader> headers = AllowHeader.ParseMany(headerValue);

                Assert.That(headers.Select(arg => arg.Method), Is.EquivalentTo(methods));
            }
Exemplo n.º 2
0
 public void Must_not_result_in_header(string headerValue)
 {
     Assert.That(AllowHeader.ParseMany(headerValue), Is.Empty);
 }