public AssertContentLengthEqualsValidationRule(long expectedContentLength) { Contract.Requires(expectedContentLength >= 0, "The expected content length must be a positive integer."); this.expectedContentLength = expectedContentLength; }