Skip to content

Instantly share code, notes, and snippets.

@PatrickKalkman
Created February 1, 2019 07:09
Show Gist options
  • Save PatrickKalkman/fe92c3cb9dd398889fc5adaf96418652 to your computer and use it in GitHub Desktop.
Save PatrickKalkman/fe92c3cb9dd398889fc5adaf96418652 to your computer and use it in GitHub Desktop.
Test for parsing the tag id of the HLS Playlist
[TestCase("#EXTM3U")]
[TestCase("#EXTM3U:")]
[TestCase("#EXTM3U\n")]
[TestCase("#EXTM3U\n#EXTM3U")]
public void ShouldParseStringThatStartsWithPoundAsPlaylistTag(string input)
{
string tagId = PlaylistGrammar.TagIdStringParser.Parse(input);
Assert.AreEqual("EXTM3U", tagId);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment