When testing an api, I am often returning the location header with a url which might not be guessable (e.g. /someresource/id/some-guid-here), so here is a pullrequest to add support for matching a header against a regex:
_.Header("location").SingleValueShouldMatch(new Regex(@"^/items/\d*$"));
// or
_.Header("location").SingleValueShouldMatch(@"^/items/\d*$");
@joemcbride @Pondidum I'm gonna interpret Joe's comment as "wake up Jeremy" ;) I'll try to get this bundled w/ whatever the aspnet core 2.1 fixes are soon
When testing an api, I am often returning the
location
header with a url which might not be guessable (e.g./someresource/id/some-guid-here
), so here is a pullrequest to add support for matching a header against a regex: