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
2019-12-05 13:34:34 +03:00

20 lines
581 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);
}
}
}