1
0
This repository has been archived on 2026-04-22. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
YouTubeScraper/YouTube.API.Test/ClosedCaptionsTest.cs
T
2020-05-10 13:47:42 +03:00

19 lines
502 B
C#

using NUnit.Framework;
using System.Linq;
using YouTube.Models;
namespace YouTube.API.Test
{
public class ClosedCaptionsTest
{
[Test]
public void ValidCaptionsTest()
{
ExtendedYouTubeService service = new ExtendedYouTubeService();
ClosedCaptionInfo info = service.VideoPlayback.List("VC5-YkjMHuw").Execute().ClosedCaptions.FirstOrDefault();
ClosedCaptionTrack track = service.Captions.Load(info).Execute();
Assert.IsNotNull(track);
Assert.IsNotEmpty(track.Captions);
}
}
}