示例#1
0
        public async Task HtmlXmlLangAttribute()
        {
            await Init();

            Assert.IsTrue(SchemaTestFixtureBase.Contains(attributes, "xml:lang"), "Attribute xml:lang not found.");
        }
示例#2
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.");
        }
示例#3
0
 public void HtmlChildElementBody()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(htmlChildElements, "body"),
                   "Should have a child element called body.");
 }
示例#4
0
        public async Task HtmlDirAttribute()
        {
            await Init();

            Assert.IsTrue(SchemaTestFixtureBase.Contains(attributes, "dir"), "Attribute dir not found.");
        }
示例#5
0
 public void BarAttributeValueDefaultDocumentation()
 {
     Assert.IsTrue(SchemaTestFixtureBase.ContainsDescription(barAttributeValuesCompletionData, "default", "Default attribute value info."),
                   "Description for attribute value 'default' is incorrect.");
 }
示例#6
0
 public void HtmlChildElementHead()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(htmlChildElements, "head"),
                   "Should have a child element called head.");
 }
        public async Task FileElementIsChildOfItemsElement()
        {
            await Init();

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

            Assert.IsTrue(SchemaTestFixtureBase.Contains(fileElementAttributes, "type"));
        }
示例#9
0
 public void IdAttribute()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(attributeCompletionData, "id"),
                   "Attribute id does not exist.");
 }
示例#10
0
 public void BaseTitleAttribute()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(attributeCompletionData, "basetitle"),
                   "Attribute basetitle does not exist.");
 }
示例#11
0
 public void NameAttribute()
 {
     Assert.IsTrue(SchemaTestFixtureBase.Contains(attributeCompletionData, "name"),
                   "Attribute name does not exist.");
 }
示例#12
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 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.");
 }