示例#1
0
        public void LoadHtml_EmbedDataTypeTest(string url, EmbedDataTypes type)
        {
            var t = new AnitvMetadata()
            {
                Url = url.ToUri()
            };
            var d = t.FetchAsync(new RequestContext(new MetadataService(), new ConsumerRequest(url.ToUri()))).GetAwaiter().GetResult();

            Assert.Equal(type, d.Type);
        }
示例#2
0
        public async void ResourceTypeTest(string url, EmbedDataTypes type)
        {
            var rm = new UnknownMetadata()
            {
                Url = url.ToUri()
            };
            var d = await rm.FetchAsync(GetRequestContext(url));

            Assert.Equal(type, d.Type);
        }