public void IdAttributeHasValueTwo()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(attributeValues, "two"),
                   "Missing attribute value 'two'");
 }
 public void RootChildElementIsBar()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(rootChildElements, "bar"),
                   "Should have a child element called bar.");
 }
 public void IdAttributeHasValueOne()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(attributeValues, "one"),
                   "Missing attribute value 'one'");
 }
 public void SchemaChildElementIsNotation()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(schemaChildElements, "notation"),
                   "Should have a child element called notation.");
 }
 public void AnnotationHasIdAttribute()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(annotationAttributes, "id"),
                   "Should have an attribute called id.");
 }
 public void IncludeHasSchemaLocationAttribute()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(includeAttributes, "schemaLocation"),
                   "Should have an attribute called schemaLocation.");
 }
 public void SchemaChildElementIsInclude()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(schemaChildElements, "include"),
                   "Should have a child element called include.");
 }
        public async Task FileElementIsChildOfItemsElement()
        {
            await Init();

            Assert.IsTrue(SchemaTestFixtureBase.Contains(itemsElementChildren, "file"));
        }
        public async Task FileElementHasAttributeNamedType()
        {
            await Init();

            Assert.IsTrue(SchemaTestFixtureBase.Contains(fileElementAttributes, "type"));
        }
示例#10
0
 public void IdAttribute()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(attributeCompletionData, "id"),
                   "Attribute id does not exist.");
 }
示例#11
0
 public void BaseTitleAttribute()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(attributeCompletionData, "basetitle"),
                   "Attribute basetitle does not exist.");
 }
示例#12
0
 public void NameAttribute()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(attributeCompletionData, "name"),
                   "Attribute name does not exist.");
 }
示例#13
0
        public async Task BodyAttributeName()
        {
            await Init();

            Assert.IsTrue(SchemaTestFixtureBase.Contains(bodyAttributes, "id"), "Attribute id not found.");
        }
 public void FooElementHasIdAttribute()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(fooAttributes, "id"),
                   "Should have an attribute called id.");
 }
 public void AnnotationChildElementIsAppInfo()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(annotationChildElements, "appinfo"),
                   "Should have a child element called appinfo.");
 }
示例#16
0
 public void HtmlChildElementHead()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(htmlChildElements, "head"),
                   "Should have a child element called head.");
 }
 public void AnnotationChildElementIsDocumentation()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(annotationChildElements, "documentation"),
                   "Should have a child element called documentation.");
 }
示例#18
0
 public void HtmlChildElementBody()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(htmlChildElements, "body"),
                   "Should have a child element called body.");
 }
 public void AppInfoHasIdAttribute()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(appInfoAttributes, "id"),
                   "Should have an attribute called id.");
 }
示例#20
0
        public async Task HtmlDirAttribute()
        {
            await Init();

            Assert.IsTrue(SchemaTestFixtureBase.Contains(attributes, "dir"), "Attribute dir not found.");
        }
 public void SchemaChildElementIsImport()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(schemaChildElements, "import"),
                   "Should have a child element called import.");
 }
示例#22
0
        public async Task HtmlXmlLangAttribute()
        {
            await Init();

            Assert.IsTrue(SchemaTestFixtureBase.Contains(attributes, "xml:lang"), "Attribute xml:lang not found.");
        }
 public void FooHasClassAttribute()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(fooAttributes, "class"),
                   "Should have an attribute called class.");
 }
示例#24
0
        public async Task TextElementAttributeName()
        {
            var attributesCompletionData = await SchemaCompletionData.GetAttributeCompletionDataAsync(DummyCompletionSource.Instance, textElementPath, CancellationToken.None);

            Assert.IsTrue(SchemaTestFixtureBase.Contains(attributesCompletionData, "foo"), "Unexpected text attribute name.");
        }
 public void ContainsSecondNamespace()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(namespaceCompletionData, secondNamespace));
 }
 public void RootChildElementIsFoo()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(rootChildElements, "foo"),
                   "Should have a child element called foo.");
 }