public void UnboundedStringShouldNotHaveMaxLength() { var edmProperty = this.builder.BuildString("prop", false, false); var mappingProperty = new MappingProperty(edmProperty); var testSubject = new MappingPropertyMatcherMaxLength(); testSubject.IsMatch(mappingProperty).Should().BeFalse(); }
public void MaxLengthStringShouldHaveMaxLength() { var edmProperty = this.builder.BuildString("prop", false, false, 128); var mappingProperty = new MappingProperty(edmProperty); var testSubject = new MappingPropertyMatcherMaxLength(); testSubject.IsMatch(mappingProperty).Should().BeTrue(); testSubject.GetMaxLength(mappingProperty).Should().Be(128); }