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); }
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); }