public void IsRequiredTypeInt32ShouldReturnFalse() { var edmProperty = this.builder.Build <int>("prop"); var mappingProperty = new MappingProperty(edmProperty); var testSubject = new MappingPropertyMatcherIsRequired(); testSubject.IsMatch(mappingProperty).Should().BeFalse(); }
public void IsRequiredTypeStringShouldReturnTrue() { var edmProperty = this.builder .BuildString("prop", false, false); edmProperty.Nullable = false; var mappingProperty = new MappingProperty(edmProperty); var testSubject = new MappingPropertyMatcherIsRequired(); testSubject.IsMatch(mappingProperty).Should().BeTrue(); }