IsMatch() public method

Determines whether the specified request matches the rule.
public IsMatch ( IStumpsHttpRequest request ) : bool
request IStumpsHttpRequest The to evaluate.
return bool
        public void IsMatch_AllowsBodySizeBetween5and50Bytes(int bodyLength, bool expectedResult)
        {
            var rule = new BodyLengthRule(5, 50);

            var request = CreateRequest(bodyLength);
            Assert.AreEqual(expectedResult, rule.IsMatch(request));
        }
        public void IsMatch_EnforcesZeroLengthBodySize(int bodyLength, bool expectedResult)
        {
            var rule = new BodyLengthRule(0, 0);

            var request = CreateRequest(bodyLength);

            Assert.AreEqual(expectedResult, rule.IsMatch(request));
        }
        public void IsMatch_AllowsBodySizeBetween5and50Bytes(int bodyLength, bool expectedResult)
        {
            var rule = new BodyLengthRule(5, 50);

            var request = CreateRequest(bodyLength);

            Assert.AreEqual(expectedResult, rule.IsMatch(request));
        }
        public void IsMatch_EnforcesExactBodySizeOf15Bytes(int bodyLength, bool expectedResult)
        {
            var rule = new BodyLengthRule(15, 15);

            var request = CreateRequest(bodyLength);

            Assert.AreEqual(expectedResult, rule.IsMatch(request));
        }
        public void IsMatch_EnforcesZeroLengthBodySize(int bodyLength, bool expectedResult)
        {
            var rule = new BodyLengthRule(0, 0);

            var request = CreateRequest(bodyLength);
            Assert.AreEqual(expectedResult, rule.IsMatch(request));
        }
        public void IsMatch_EnforcesExactBodySizeOf15Bytes(int bodyLength, bool expectedResult)
        {
            var rule = new BodyLengthRule(15, 15);

            var request = CreateRequest(bodyLength);
            Assert.AreEqual(expectedResult, rule.IsMatch(request));
        }
 public void IsMatch_WithNullRequest_ReturnsFalse()
 {
     var rule = new BodyLengthRule(15, 15);
     Assert.IsFalse(rule.IsMatch(null));
 }
        public void IsMatch_WithNullRequest_ReturnsFalse()
        {
            var rule = new BodyLengthRule(15, 15);

            Assert.IsFalse(rule.IsMatch(null));
        }