You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm using the FormUrlEncodedMatcher and realized that it is not requiring all the patterns configured to match when MatchOperator.And
Expected behavior:
When FormUrlEncodedMatcher is configured with MatchOperator.And should match all the patterns configured
Test to reproduce
[Fact]publicasyncTaskFormUrlEncodedMatcher_IsMatch_And_MatchAllProperties(){// Arrangevarcontent=newFormUrlEncodedContent(new[]{newKeyValuePair<string,string>("name","John Doe"),newKeyValuePair<string,string>("email","[email protected]")});varcontentAsString=awaitcontent.ReadAsStringAsync();// The expectation is that the matcher requires all properties to be present in the content.varmatcher=newFormUrlEncodedMatcher(["name=*","email=*","required=*"],matchOperator:MatchOperator.And);// Actvarscore=matcher.IsMatch(contentAsString).IsPerfect();// Assertscore.Should().BeFalse();}
The text was updated successfully, but these errors were encountered:
Hi, I'm using the
FormUrlEncodedMatcher
and realized that it is not requiring all the patterns configured to match whenMatchOperator.And
Expected behavior:
When
FormUrlEncodedMatcher
is configured withMatchOperator.And
should match all the patterns configuredTest to reproduce
The text was updated successfully, but these errors were encountered: