public void FooHasClassAttribute() { Assert.IsTrue(SchemaTestFixtureBase.Contains(fooAttributes, "class"), "Should have an attribute called class."); }
public void MaxOccursAttributeHasValueUnbounded() { Assert.IsTrue(SchemaTestFixtureBase.Contains(maxOccursAttributeValues, "unbounded"), "Attribute value 'unbounded' missing."); }
public void AllElementAnnotationHasDocumentationChildElement() { Assert.IsTrue(SchemaTestFixtureBase.Contains(allElementAnnotationChildElements, "xs:documentation"), "Should have documentation child element."); }
public void BlockDefaultAttributeHasValueAll() { Assert.IsTrue(SchemaTestFixtureBase.Contains(blockDefaultAttributeValues, "#all"), "Attribute value '#all' missing."); }
public void FinalDefaultAttributeHasValueList() { Assert.IsTrue(SchemaTestFixtureBase.Contains(finalDefaultAttributeValues, "list"), "Attribute value 'list' missing."); }
public void ElementHasIdAttribute() { Assert.IsTrue(SchemaTestFixtureBase.Contains(elementAttributes, "id"), "id attribute missing."); }
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."); }
public void ChoiceDoesNotHaveNameAttribute() { Assert.IsFalse(SchemaTestFixtureBase.Contains(choiceAttributes, "name"), "Attribute name should not exist."); }
public void BarAttributeExists() { Assert.IsTrue(SchemaTestFixtureBase.Contains(attributeCompletionData, "bar"), "Attribute bar does not exist."); }
public void ChoiceDoesNotHaveRefAttribute() { Assert.IsFalse(SchemaTestFixtureBase.Contains(choiceAttributes, "ref"), "Attribute ref should not exist."); }
public void FileElementIsChildOfItemsElement() { Assert.IsTrue(SchemaTestFixtureBase.Contains(itemsElementChildren, "file")); }
public void SimpleRestrictionTypeHasEnumChildElement() { Assert.IsTrue(SchemaTestFixtureBase.Contains(simpleEnumElements, "xs:enumeration"), "enumeration element missing."); }
public void FileElementHasAttributeNamedType() { Assert.IsTrue(SchemaTestFixtureBase.Contains(fileElementAttributes, "type")); }
public void ElementFormDefaultAttributeHasValueQualified() { Assert.IsTrue(SchemaTestFixtureBase.Contains(elementFormDefaultAttributeValues, "qualified"), "Attribute value 'qualified' missing."); }
public void TextElementAttributeName() { ICompletionData[] attributesCompletionData = SchemaCompletionData.GetAttributeCompletionData(textElementPath); Assert.IsTrue(SchemaTestFixtureBase.Contains(attributesCompletionData, "foo"), "Unexpected text attribute name."); }
public void BlockDefaultAttributeHasValueExtension() { Assert.IsTrue(SchemaTestFixtureBase.Contains(blockDefaultAttributeValues, "extension"), "Attribute value 'extension' missing."); }
public void HtmlChildElementHead() { Assert.IsTrue(SchemaTestFixtureBase.Contains(htmlChildElements, "head"), "Should have a child element called head."); }
public void MixedAttributeHasValueTrue() { Assert.IsTrue(SchemaTestFixtureBase.Contains(mixedAttributeValues, "true"), "Attribute value 'true' missing."); }
public void HtmlChildElementBody() { Assert.IsTrue(SchemaTestFixtureBase.Contains(htmlChildElements, "body"), "Should have a child element called body."); }
public void AllElementHasElementChildElement() { Assert.IsTrue(SchemaTestFixtureBase.Contains(allElementChildElements, "xs:element"), "Should have an child element called 'element'."); }
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."); }