Example #1
0
 public void ParsingShouldFailIfAConstraintIsMissingReferencedProperty()
 {
     this.ParseReferentialConstraintWithExpectedErrors(
         @"<ReferentialConstraint Property=""ForeignKeyId1"" />",
         EdmErrorCode.MissingAttribute,
         ErrorStrings.XmlParser_MissingAttribute("ReferencedProperty", "ReferentialConstraint"));
 }
Example #2
0
 public void ParsingShouldFailIfANavigationIsMissingType()
 {
     this.ParseNavigationExpectedErrors(
         @"<NavigationProperty Name=""Navigation"" />",
         EdmErrorCode.MissingAttribute,
         ErrorStrings.XmlParser_MissingAttribute("Type", "NavigationProperty"));
 }
Example #3
0
 public void ParsingShouldFailIfABindingIsMissingPath()
 {
     this.ParseBindingWithExpectedErrors(
         @"<NavigationPropertyBinding Target=""EntitySet"" />",
         EdmErrorCode.MissingAttribute,
         ErrorStrings.XmlParser_MissingAttribute("Path", "NavigationPropertyBinding"));
 }