public void AnnotationChildElementIsAppInfo()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(annotationChildElements, "appinfo"),
                   "Should have a child element called appinfo.");
 }
Beispiel #2
0
 public void AllElementHasElementChildElement()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(allElementChildElements, "xs:element"),
                   "Should have an child element called 'element'.");
 }
 public void FileElementIsChildOfItemsElement()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(itemsElementChildren, "file"));
 }
Beispiel #4
0
 public void BlockDefaultAttributeHasValueExtension()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(blockDefaultAttributeValues, "extension"),
                   "Attribute value 'extension' missing.");
 }
Beispiel #5
0
 public void MixedAttributeHasValueTrue()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(mixedAttributeValues, "true"),
                   "Attribute value 'true' missing.");
 }
Beispiel #6
0
 public void SimpleRestrictionTypeHasEnumChildElement()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(simpleEnumElements, "xs:enumeration"),
                   "enumeration element missing.");
 }
Beispiel #7
0
 public void ElementFormDefaultAttributeHasValueQualified()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(elementFormDefaultAttributeValues, "qualified"),
                   "Attribute value 'qualified' missing.");
 }
 public void SchemaChildElementIsNotation()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(schemaChildElements, "notation"),
                   "Should have a child element called notation.");
 }
 public void FooHasClassAttribute()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(fooAttributes, "class"),
                   "Should have an attribute called class.");
 }
 public void SchemaChildElementIsInclude()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(schemaChildElements, "include"),
                   "Should have a child element called include.");
 }
 public void SchemaChildElementIsImport()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(schemaChildElements, "import"),
                   "Should have a child element called import.");
 }
 public void AppInfoHasIdAttribute()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(appInfoAttributes, "id"),
                   "Should have an attribute called id.");
 }
 public void IncludeHasSchemaLocationAttribute()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(includeAttributes, "schemaLocation"),
                   "Should have an attribute called schemaLocation.");
 }
 public void AnnotationChildElementIsDocumentation()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(annotationChildElements, "documentation"),
                   "Should have a child element called documentation.");
 }
Beispiel #15
0
        public void ElementNameAttributeAppearsOnce()
        {
            int nameAttributeCount = SchemaTestFixtureBase.GetItemCount(elementAttributes, "name");

            Assert.AreEqual(1, nameAttributeCount, "Should be only one name attribute.");
        }
 public void AnnotationHasIdAttribute()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(annotationAttributes, "id"),
                   "Should have an attribute called id.");
 }
Beispiel #17
0
 public void ElementHasIdAttribute()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(elementAttributes, "id"),
                   "id attribute missing.");
 }
 public void IdAttributeHasValueOne()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(attributeValues, "one"),
                   "Missing attribute value 'one'");
 }
Beispiel #19
0
 public void EnumHasValueAttribute()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(enumAttributes, "value"),
                   "Attribute value missing.");
 }
 public void IdAttributeHasValueTwo()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(attributeValues, "two"),
                   "Missing attribute value 'two'");
 }
Beispiel #21
0
 public void BlockDefaultAttributeHasValueAll()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(blockDefaultAttributeValues, "#all"),
                   "Attribute value '#all' missing.");
 }
 public void BarAttributeExists()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(attributeCompletionData, "bar"),
                   "Attribute bar does not exist.");
 }
Beispiel #23
0
 public void FinalDefaultAttributeHasValueList()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(finalDefaultAttributeValues, "list"),
                   "Attribute value 'list' missing.");
 }
Beispiel #24
0
 public void ChoiceHasMaxOccursAttribute()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(choiceAttributes, "maxOccurs"),
                   "Attribute maxOccurs missing.");
 }
Beispiel #25
0
 public void MaxOccursAttributeHasValueUnbounded()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(maxOccursAttributeValues, "unbounded"),
                   "Attribute value 'unbounded' missing.");
 }
Beispiel #26
0
 public void ChoiceDoesNotHaveNameAttribute()
 {
     Assert.IsFalse(SchemaTestFixtureBase.Contains(choiceAttributes, "name"),
                    "Attribute name should not exist.");
 }
Beispiel #27
0
 public void AllElementAnnotationHasDocumentationChildElement()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(allElementAnnotationChildElements, "xs:documentation"),
                   "Should have documentation child element.");
 }
Beispiel #28
0
 public void ChoiceDoesNotHaveRefAttribute()
 {
     Assert.IsFalse(SchemaTestFixtureBase.Contains(choiceAttributes, "ref"),
                    "Attribute ref should not exist.");
 }
 public void FileElementHasAttributeNamedType()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(fileElementAttributes, "type"));
 }
 public void TitleAttribute()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(attributeCompletionData, "title"),
                   "Attribute title does not exist.");
 }