public void Must_parse_correctly(object[] parameters)
            {
                var headerValue    = (string)parameters[0];
                var receivedFields = new List <Tuple <string, string> >();

                for (int i = 1; i < parameters.Length; i += 2)
                {
                    receivedFields.Add(new Tuple <string, string>((string)parameters[i], (string)parameters[i + 1]));
                }

                IEnumerable <ViaHeader> headers = ViaHeader.ParseMany(headerValue);

                Assert.That(headers.Select(arg => new Tuple <string, string>(arg.ReceivedProtocol, arg.ReceivedBy)), Is.EquivalentTo(receivedFields));
            }
 public void Must_not_result_in_header(string headerValue)
 {
     Assert.That(ViaHeader.ParseMany(headerValue), Is.Empty);
 }