示例#1
0
        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();
        }
示例#2
0
        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);
        }