public void LoadHtml_TitleTest(string url, string title) { var t = new AnitvMetadata() { Url = url.ToUri() }; var d = t.FetchAsync(new RequestContext(new MetadataService(), new ConsumerRequest(url.ToUri()))).GetAwaiter().GetResult(); Assert.Equal(title, d.Title); }
public void LoadHtml_MediaTypeTest(string url, MediaTypes 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.MetadataImage.Type); }