示例#1
0
        public async void Test_YouTube_Normal()
        {
            var grabber = new YouTubeGrabber();
            var result  = await grabber.GrabAsync(new Uri("https://www.youtube.com/watch?v=ThUS9fj-mCA"));

            Assert.False(result.IsSecure);
            Assert.Equal(23, result.Resources.Count);
        }
示例#2
0
        public async void Test_YouTube_Decipher()
        {
            var grabber = new YouTubeGrabber();
            var result  = await grabber.GrabAsync(new Uri("https://www.youtube.com/watch?v=ZR02k-h0lX0"));

            Assert.True(result.IsSecure);
            Assert.Equal(33, result.Resources.Count);
        }
示例#3
0
 public async void Test_YouTube()
 {
     var grabber = new YouTubeGrabber();
     // var result = await grabber.GrabAsync(new Uri("https://www.youtube.com/watch?v=-BjZmE2gtdo"));
     var result = await grabber.GrabAsync(new Uri("https://www.youtube.com/watch?v=Fpgd3ac3_nM"));
 }