diff --git a/TwitchLib.Client.Test/Parsing.cs b/TwitchLib.Client.Test/Parsing.cs index af1a8e0c..4988a2e7 100644 --- a/TwitchLib.Client.Test/Parsing.cs +++ b/TwitchLib.Client.Test/Parsing.cs @@ -1,4 +1,5 @@ -using TwitchLib.Client.Models.Internal; +using TwitchLib.Client.Models.Extractors; +using TwitchLib.Client.Models.Internal; using Xunit; namespace TwitchLib.Client.Test; @@ -21,6 +22,14 @@ public void Badges() TagHelper.ToBadges(badges); } + [Fact] + public void EmoteExtractorExtract() + { + var emotes = EmoteExtractor.Extract("25:10-14", "One 😂 Two Kappa Three"); + Assert.True(emotes.Count == 1); + Assert.True(emotes[0].Name == "Kappa"); + } + [Theory] [InlineData("@ban-duration=350;room-id=12345678;target-user-id=87654321;tmi-sent-ts=1642719320727 :tmi.twitch.tv CLEARCHAT #dallas :ronni")]