public void XElementAnnotationTestNestedXElementWithNoValueCsdl() { XElement expectedAnnotation = new XElement("{http://foo}Annotation", new XElement("{http://foo}Child", new XElement("{http://foo}GrandChild", new XElement("{http://foo}GreatGrandChild", new XElement("{http://foo}GreateGreatGrandChild") ) ) ) ); AnnotationInfo annotationInfo = new AnnotationInfo() { Namespace = "http://foo", Name = "Annotation" }; List <ElementInfo> annotationPath = new List <ElementInfo>() { new ElementInfo() { Name = "SimpleType", Type = AnnotatableElementType.ComplexType }, new ElementInfo() { Name = "Id", Type = AnnotatableElementType.Property } }; ElementLocation annotationLocation = new ElementLocation() { Namespace = "DefaultNamespace", ElementPath = annotationPath }; this.AnnotationRoundTripCsdlCheck(XElementAnnotationModelBuilder.NestedXElementWithNoValueCsdl(), expectedAnnotation, annotationInfo, annotationLocation); }