Пример #1
0
 public void PageLoadException()
 {
     try {
         PlaylistDbInitializer.PageLoad(URL + "/page/9");
         Assert.Fail();
     }
     catch (WebException) { }
 }
Пример #2
0
        public void AudioNotNull()
        {
            PlaylistDbInitializer.PageLoad(URL);
            HtmlNodeCollection nodes = htmlDoc.DocumentNode.SelectNodes("//div[@class = 't-inside style-light-bg']");
            var audios = "";

            foreach (var node in nodes)
            {
                audios += PlaylistDbInitializer.GetAudio(node);
            }
            Assert.IsNotNull(audios);
        }