public AssertContentTypeEqualsValidationRule(string expectedContentType) { Contract.Requires(!string.IsNullOrWhiteSpace(expectedContentType), "The expected content type value cannot be null or empty."); this.expectedContentType = expectedContentType; }