コード例 #1
0
 public void AllowMultipleNamedAssertions()
 {
     _responseWithObject
     .TestStatus("first", code => code == 200)
     .TestBody("second", body => body.id != null)
     .Assert("first")
     .Assert("second");
 }
コード例 #2
0
 public void ThenTheBoardIsCreated()
 {
     _responseContext
     .TestStatus("status", x => x == 200)
     .Assert("status");
 }
コード例 #3
0
 public void EmptyResponseShouldPass()
 {
     _responseWithNothing
     .TestStatus("is-ok", x => x == 200)
     .Assert("is-ok");
 }