public IsMatch ( IStumpsHttpRequest request ) : bool | ||
request | IStumpsHttpRequest | The |
리턴 | bool |
public void IsMatch_GivenBodyDifferentFromRuleButSameSize_ReturnsFalse() { var requestBody = GenerateByteArray(3, Environment.TickCount); var rule = new BodyMatchRule(3, "010203"); var request = CreateRequest(requestBody); Assert.IsFalse(rule.IsMatch(request)); }
public void IsMatch_GivenBodyIsSameAsRule_ReturnsTrue() { var requestBody = new byte[] { 1, 2, 3 }; var rule = new BodyMatchRule(3, "5289DF737DF57326FCDD22597AFB1FAC"); var request = CreateRequest(requestBody); Assert.IsTrue(rule.IsMatch(request)); }
public void IsMatch_GivenBodyDifferentFromRuleButSameSize_ReturnsFalse() { var requestBody = GenerateByteArray(3, Environment.TickCount); var rule = new BodyMatchRule(3, "010203"); var request = CreateRequest(requestBody); Assert.IsFalse(rule.IsMatch(request)); }
public void IsMatch_WithDifferentBodySizes_ReturnsFalse() { var requestBody = GenerateByteArray(10, Environment.TickCount); var rule = new BodyMatchRule(3, "010203"); var request = CreateRequest(requestBody); Assert.IsFalse(rule.IsMatch(request)); }
public void IsMatch_WithDifferentBodySizes_ReturnsFalse() { var requestBody = GenerateByteArray(10, Environment.TickCount); var rule = new BodyMatchRule(3, "010203"); var request = CreateRequest(requestBody); Assert.IsFalse(rule.IsMatch(request)); }
public void IsMatch_GivenBodyIsSameAsRule_ReturnsTrue() { var requestBody = new byte[] { 1, 2, 3 }; var rule = new BodyMatchRule(3, "5289DF737DF57326FCDD22597AFB1FAC"); var request = CreateRequest(requestBody); Assert.IsTrue(rule.IsMatch(request)); }
public void IsMatch_WithNullRequest_ReturnsFalse() { var rule = new BodyMatchRule(3, "010203"); Assert.IsFalse(rule.IsMatch(null)); }
public void IsMatch_WithNullRequest_ReturnsFalse() { var rule = new BodyMatchRule(3, "010203"); Assert.IsFalse(rule.IsMatch(null)); }