Exemplo n.º 1
0
    public async Task ReturnsVttGivenSrtTest()
    {
        var srt = await TestFileHelper.BuildSrtAsync();

        var expectedVtt = await TestFileHelper.BuildVttAsync();

        var vtt = SubtitleConverter.ConvertSrtToVtt(srt);

        vtt.RemoveSpecialCharacters().ShouldBe(expectedVtt.RemoveSpecialCharacters());
    }