Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }