mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2024-09-19 12:18:48 -04:00
31 lines
744 B
C#
31 lines
744 B
C#
using System.Threading.Tasks;
|
|
using DiscordChatExporter.Cli.Tests.Infra;
|
|
using FluentAssertions;
|
|
using Xunit;
|
|
|
|
namespace DiscordChatExporter.Cli.Tests.Specs;
|
|
|
|
public class PlainTextContentSpecs
|
|
{
|
|
[Fact]
|
|
public async Task I_can_export_a_channel_in_the_TXT_format()
|
|
{
|
|
// Act
|
|
var document = await ExportWrapper.ExportAsPlainTextAsync(ChannelIds.DateRangeTestCases);
|
|
|
|
// Assert
|
|
document
|
|
.Should()
|
|
.ContainAll(
|
|
"tyrrrz",
|
|
"Hello world",
|
|
"Goodbye world",
|
|
"Foo bar",
|
|
"Hurdle Durdle",
|
|
"One",
|
|
"Two",
|
|
"Three",
|
|
"Yeet"
|
|
);
|
|
}
|
|
}
|