Skip to content

Commit

Permalink
Improve EmoteExtractor test (#261)
Browse files Browse the repository at this point in the history
Improves the EmoteExtractor test to confirm the Index is as expected also
  • Loading branch information
Hampo authored Apr 6, 2024
1 parent 8c5e0ae commit de39bd0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion TwitchLib.Client.Test/Parsing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ public void Badges()
[Fact]
public void EmoteExtractorExtract()
{
var emotes = EmoteExtractor.Extract("25:10-14", "One 😂 Two Kappa Three");
var message = "One 😂 Two Kappa Three";
var emotes = EmoteExtractor.Extract("25:10-14", message);
Assert.True(emotes.Count == 1);
Assert.True(emotes[0].Name == "Kappa");
Assert.True(emotes[0].StartIndex == message.IndexOf("Kappa"));
}


Expand Down

0 comments on commit de39bd0

Please sign in to comment.