Esempio n. 1
0
        public void YTApinotcorrectFoundVideo()
        {
            YTApi Youtube = new YTApi();
            int   expected_length_of_found_videos = 0;

            Youtube.Search("kacperro - arkoj").Wait();
            Assert.AreEqual(Youtube.FoundVideos.Count, expected_length_of_found_videos, "For chosen string should find 0 videos");
        }
Esempio n. 2
0
        public void YTApicorrectSearchWordchange()
        {
            YTApi  Youtube = new YTApi();
            string expected_search_string = "Skillet - Rise";

            Youtube.Search("Skillet - Rise").Wait();
            Assert.AreEqual(Youtube.Search_Word, expected_search_string, "Correct change searchword is required");
        }
Esempio n. 3
0
        public void YTApicorrectFoundVideo()
        {
            YTApi  Youtube = new YTApi();
            int    expected_length_of_found_videos = 3;
            string expected_link = "https://www.youtube.com/watch?v=b3jQ0tFqG_0";

            Youtube.Search("Skillet - Rise").Wait();
            Assert.AreEqual(Youtube.FoundVideos.Count, expected_length_of_found_videos, "For chosen string should find 3 videos");
            Assert.AreEqual(Youtube.FoundVideos[0], expected_link, "Chosen string should give expected string");
        }