Exemplo n.º 1
0
 public void ParsingShouldFailIfABindingHasExtraAttributes()
 {
     this.ParseBindingWithExpectedErrors(
         @"<NavigationPropertyBinding Path=""Navigation"" Target=""EntitySet"" Something=""else"" Foo=""bar"" />",
         EdmErrorCode.UnexpectedXmlAttribute,
         ErrorStrings.XmlParser_UnexpectedAttribute("Something"),
         ErrorStrings.XmlParser_UnexpectedAttribute("Foo"));
 }
Exemplo n.º 2
0
 public void ParsingShouldFailIfAConstraintHasExtraAttributes()
 {
     this.ParseReferentialConstraintWithExpectedErrors(
         @"
       <ReferentialConstraint Property=""ForeignKeyId1"" ReferencedProperty=""ID1"" Something=""else"" Foo=""bar"" />",
         EdmErrorCode.UnexpectedXmlAttribute,
         ErrorStrings.XmlParser_UnexpectedAttribute("Something"),
         ErrorStrings.XmlParser_UnexpectedAttribute("Foo"));
 }