public void AnnotationChildElementIsAppInfo()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(annotationChildElements, "appinfo"),
                   "Should have a child element called appinfo.");
 }
예제 #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"));
 }
예제 #4
0
 public void BlockDefaultAttributeHasValueExtension()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(blockDefaultAttributeValues, "extension"),
                   "Attribute value 'extension' missing.");
 }
예제 #5
0
 public void MixedAttributeHasValueTrue()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(mixedAttributeValues, "true"),
                   "Attribute value 'true' missing.");
 }
예제 #6
0
 public void SimpleRestrictionTypeHasEnumChildElement()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(simpleEnumElements, "xs:enumeration"),
                   "enumeration element missing.");
 }
예제 #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.");
 }
예제 #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.");
 }
예제 #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'");
 }
예제 #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'");
 }
예제 #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.");
 }
예제 #23
0
 public void FinalDefaultAttributeHasValueList()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(finalDefaultAttributeValues, "list"),
                   "Attribute value 'list' missing.");
 }
예제 #24
0
 public void ChoiceHasMaxOccursAttribute()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(choiceAttributes, "maxOccurs"),
                   "Attribute maxOccurs missing.");
 }
예제 #25
0
 public void MaxOccursAttributeHasValueUnbounded()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(maxOccursAttributeValues, "unbounded"),
                   "Attribute value 'unbounded' missing.");
 }
예제 #26
0
 public void ChoiceDoesNotHaveNameAttribute()
 {
     Assert.IsFalse(SchemaTestFixtureBase.Contains(choiceAttributes, "name"),
                    "Attribute name should not exist.");
 }
예제 #27
0
 public void AllElementAnnotationHasDocumentationChildElement()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(allElementAnnotationChildElements, "xs:documentation"),
                   "Should have documentation child element.");
 }
예제 #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.");
 }