コード例 #1
0
 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();
 }
コード例 #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");
 }
コード例 #3
0
 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");
 }