public void FooHasClassAttribute()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(fooAttributes, "class"),
                   "Should have an attribute called class.");
 }
Пример #2
0
 public void MaxOccursAttributeHasValueUnbounded()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(maxOccursAttributeValues, "unbounded"),
                   "Attribute value 'unbounded' missing.");
 }
Пример #3
0
 public void AllElementAnnotationHasDocumentationChildElement()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(allElementAnnotationChildElements, "xs:documentation"),
                   "Should have documentation child element.");
 }
Пример #4
0
 public void BlockDefaultAttributeHasValueAll()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(blockDefaultAttributeValues, "#all"),
                   "Attribute value '#all' missing.");
 }
Пример #5
0
 public void FinalDefaultAttributeHasValueList()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(finalDefaultAttributeValues, "list"),
                   "Attribute value 'list' missing.");
 }
Пример #6
0
 public void ElementHasIdAttribute()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(elementAttributes, "id"),
                   "id attribute missing.");
 }
Пример #7
0
 public void EnumHasValueAttribute()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(enumAttributes, "value"),
                   "Attribute value missing.");
 }
 public void ShipOrderHasShipToChildElement()
 {
     ICompletionData[] data = SchemaCompletionData.GetChildElementCompletionData(shipOrderPath);
     Assert.IsTrue(SchemaTestFixtureBase.Contains(data, "shipto"),
                   "Incorrect child element name.");
 }
 public void ShipToHasAddressChildElement()
 {
     ICompletionData[] data = SchemaCompletionData.GetChildElementCompletionData(shipToPath);
     Assert.IsTrue(SchemaTestFixtureBase.Contains(data, "address"),
                   "Incorrect child element name.");
 }
 public void ShipOrderAttributeName()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(shipOrderAttributes, "id"),
                   "Incorrect shiporder attribute name.");
 }
 public void ShipToAttributeName()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(shipToAttributes, "address"),
                   "Incorrect shipto attribute name.");
 }
 public void FooElementHasIdAttribute()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(fooAttributes, "id"),
                   "Should have an attribute called id.");
 }
 public void RootChildElementIsBar()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(rootChildElements, "bar"),
                   "Should have a child element called bar.");
 }
 public void RootChildElementIsFoo()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(rootChildElements, "foo"),
                   "Should have a child element called foo.");
 }
Пример #15
0
 public void ChoiceDoesNotHaveNameAttribute()
 {
     Assert.IsFalse(SchemaTestFixtureBase.Contains(choiceAttributes, "name"),
                    "Attribute name should not exist.");
 }
Пример #16
0
 public void BarAttributeExists()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(attributeCompletionData, "bar"),
                   "Attribute bar does not exist.");
 }
Пример #17
0
 public void ChoiceDoesNotHaveRefAttribute()
 {
     Assert.IsFalse(SchemaTestFixtureBase.Contains(choiceAttributes, "ref"),
                    "Attribute ref should not exist.");
 }
 public void FileElementIsChildOfItemsElement()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(itemsElementChildren, "file"));
 }
Пример #19
0
 public void SimpleRestrictionTypeHasEnumChildElement()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(simpleEnumElements, "xs:enumeration"),
                   "enumeration element missing.");
 }
 public void FileElementHasAttributeNamedType()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(fileElementAttributes, "type"));
 }
Пример #21
0
 public void ElementFormDefaultAttributeHasValueQualified()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(elementFormDefaultAttributeValues, "qualified"),
                   "Attribute value 'qualified' missing.");
 }
Пример #22
0
 public void TextElementAttributeName()
 {
     ICompletionData[] attributesCompletionData = SchemaCompletionData.GetAttributeCompletionData(textElementPath);
     Assert.IsTrue(SchemaTestFixtureBase.Contains(attributesCompletionData, "foo"),
                   "Unexpected text attribute name.");
 }
Пример #23
0
 public void BlockDefaultAttributeHasValueExtension()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(blockDefaultAttributeValues, "extension"),
                   "Attribute value 'extension' missing.");
 }
Пример #24
0
 public void HtmlChildElementHead()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(htmlChildElements, "head"),
                   "Should have a child element called head.");
 }
Пример #25
0
 public void MixedAttributeHasValueTrue()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(mixedAttributeValues, "true"),
                   "Attribute value 'true' missing.");
 }
Пример #26
0
 public void HtmlChildElementBody()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(htmlChildElements, "body"),
                   "Should have a child element called body.");
 }
Пример #27
0
 public void AllElementHasElementChildElement()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(allElementChildElements, "xs:element"),
                   "Should have an child element called 'element'.");
 }
Пример #28
0
 public void ChoiceHasMaxOccursAttribute()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(choiceAttributes, "maxOccurs"),
                   "Attribute maxOccurs missing.");
 }
 public void NoteChildElementIsTitle()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(noteChildElements, "title"),
                   "Should have a child element called title.");
 }
 public void SchemaChildElementIsNotation()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(schemaChildElements, "notation"),
                   "Should have a child element called notation.");
 }