public void Must_parse_correctly(object[] parameters) { var headerValue = (string)parameters[0]; IEnumerable <ExpectHeader> headers = ExpectHeader.ParseMany(headerValue); var expectParams = new List <Tuple <string, string> >(); for (int i = 1; i < parameters.Length; i += 2) { expectParams.Add(new Tuple <string, string>((string)parameters[i], (string)parameters[i + 1])); } Assert.That(headers.Select(arg => new Tuple <string, string>(arg.Name, arg.Value)), Is.EquivalentTo(expectParams)); }
public void Must_not_result_in_header(string headerValue) { Assert.That(ExpectHeader.ParseMany(headerValue), Is.Empty); }