Skip to content

Commit

Permalink
More strict
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrrrz committed Nov 6, 2024
1 parent 764d92f commit e880214
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions DiscordChatExporter.Cli.Tests/Specs/JsonEmojiSpecs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,25 @@ public async Task I_can_export_a_channel_that_contains_a_message_with_inline_emo
var inlineEmojis = message.GetProperty("inlineEmojis").EnumerateArray().ToArray();
inlineEmojis.Should().HaveCount(4);

inlineEmojis[0].GetProperty("id").GetString().Should().BeNullOrWhiteSpace();
inlineEmojis[0].GetProperty("id").GetString().Should().BeNullOrEmpty();
inlineEmojis[0].GetProperty("name").GetString().Should().Be("🙂");
inlineEmojis[0].GetProperty("code").GetString().Should().Be("slight_smile");
inlineEmojis[0].GetProperty("isAnimated").GetBoolean().Should().BeFalse();
inlineEmojis[0].GetProperty("imageUrl").GetString().Should().NotBeNullOrWhiteSpace();

inlineEmojis[1].GetProperty("id").GetString().Should().BeNullOrWhiteSpace();
inlineEmojis[1].GetProperty("id").GetString().Should().BeNullOrEmpty();
inlineEmojis[1].GetProperty("name").GetString().Should().Be("😦");
inlineEmojis[1].GetProperty("code").GetString().Should().Be("frowning");
inlineEmojis[1].GetProperty("isAnimated").GetBoolean().Should().BeFalse();
inlineEmojis[1].GetProperty("imageUrl").GetString().Should().NotBeNullOrWhiteSpace();

inlineEmojis[2].GetProperty("id").GetString().Should().BeNullOrWhiteSpace();
inlineEmojis[2].GetProperty("id").GetString().Should().BeNullOrEmpty();
inlineEmojis[2].GetProperty("name").GetString().Should().Be("😔");
inlineEmojis[2].GetProperty("code").GetString().Should().Be("pensive");
inlineEmojis[2].GetProperty("isAnimated").GetBoolean().Should().BeFalse();
inlineEmojis[2].GetProperty("imageUrl").GetString().Should().NotBeNullOrWhiteSpace();

inlineEmojis[3].GetProperty("id").GetString().Should().BeNullOrWhiteSpace();
inlineEmojis[3].GetProperty("id").GetString().Should().BeNullOrEmpty();
inlineEmojis[3].GetProperty("name").GetString().Should().Be("😂");
inlineEmojis[3].GetProperty("code").GetString().Should().Be("joy");
inlineEmojis[3].GetProperty("isAnimated").GetBoolean().Should().BeFalse();
Expand Down

0 comments on commit e880214

Please sign in to comment.