public void CustomParserShouldPass()
 {
     _responseWithCsv
     .TestHeader("testHeader", "Content-type", x => x.Contains("csv"))
     .TestBody("first item has AL", x => x[0].key == "AL")
     .TestBody("first item has Alabama", x => x[0].value == "Alabama")
     .TestBody("second item has AK", x => x[1].key == "AK")
     .AssertAll();
 }
Esempio n. 2
0
 public void TestHeaderWithContentTypeUpperCased()
 {
     _responseWithObject
     .TestHeader("content header has app/json uppper", "CONTENT=TYPE", x => x == "application/json")
     .Assert("content header has app/json upper");
 }
 public void TestHeaderWithContentTypeLowerCased()
 {
     _responseWithObject
     .TestHeader("content header has app/json lower", "content-type", x => x.Contains("application/json"))
     .Assert("content header has app/json lower");
 }