This commit is contained in:
Stef Heyenrath committed 2017-01-23 19:43:30 +01:00
1 parent 363d96e615
commit 45aa83ee91
11 files changed
+208 -92

No files matched your search

+13
View File
@@ -250,6 +250,19 @@ namespace WireMock.Net.Tests
Check.That(spec.IsMatch(request)).IsTrue();
}
[Test]
public void Should_specify_requests_matching_given_cookies()
{
// given
var spec = Request.Create().WithUrl("/foo").UsingAnyVerb().WithCookie("session", "a*");
// when
var request = new RequestMessage(new Uri("http://localhost/foo"), "PUT", null, null, null, new Dictionary<string, string> { { "session", "abc" } });
// then
Check.That(spec.IsMatch(request)).IsTrue();
}
[Test]
public void Should_specify_requests_matching_given_body()
{