mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-10 20:02:31 +00:00
30 lines
707 B
C#
30 lines
707 B
C#
using System.Threading.Tasks;
|
|
using DiscordChatExporter.Cli.Tests.Infra;
|
|
using DiscordChatExporter.Cli.Tests.TestData;
|
|
using FluentAssertions;
|
|
using Xunit;
|
|
|
|
namespace DiscordChatExporter.Cli.Tests.Specs;
|
|
|
|
public class CsvContentSpecs
|
|
{
|
|
[Fact]
|
|
public async Task Messages_are_exported_correctly()
|
|
{
|
|
// Act
|
|
var document = await ExportWrapper.ExportAsCsvAsync(ChannelIds.DateRangeTestCases);
|
|
|
|
// Assert
|
|
document.Should().ContainAll(
|
|
"Tyrrrz#5447",
|
|
"Hello world",
|
|
"Goodbye world",
|
|
"Foo bar",
|
|
"Hurdle Durdle",
|
|
"One",
|
|
"Two",
|
|
"Three",
|
|
"Yeet"
|
|
);
|
|
}
|
|
} |