Beispiel #1
0
            public void Must_parse_correctly(object[] parameters)
            {
                var headerValue = (string)parameters[0];
                IEnumerable <string> transferCodings         = parameters.Where((arg, i) => i > 0).Cast <string>();
                IEnumerable <TransferEncodingHeader> headers = TransferEncodingHeader.ParseMany(headerValue);

                Assert.That(headers.Select(arg => arg.TransferCoding), Is.EquivalentTo(transferCodings));
            }
Beispiel #2
0
 public void Must_not_result_in_header(string headerValue)
 {
     Assert.That(TransferEncodingHeader.ParseMany(headerValue), Is.Empty);
 }