Skip to content

Commit

Permalink
Reorder tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrrrz committed Jan 18, 2024
1 parent d8e43d8 commit 014712b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions DiscordChatExporter.Cli.Tests/Specs/FilterSpecs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public async Task I_can_filter_the_export_to_only_include_messages_that_contain_
}

[Fact]
public async Task I_can_filter_the_export_to_only_include_messages_that_contain_guild_invites()
public async Task I_can_filter_the_export_to_only_include_messages_that_have_been_pinned()
{
// Arrange
using var file = TempFile.Create();
Expand All @@ -103,7 +103,7 @@ public async Task I_can_filter_the_export_to_only_include_messages_that_contain_
ChannelIds = [ChannelIds.FilterTestCases],
ExportFormat = ExportFormat.Json,
OutputPath = file.Path,
MessageFilter = MessageFilter.Parse("has:invite")
MessageFilter = MessageFilter.Parse("has:pin")
}.ExecuteAsync(new FakeConsole());

// Assert
Expand All @@ -112,11 +112,11 @@ public async Task I_can_filter_the_export_to_only_include_messages_that_contain_
.EnumerateArray()
.Select(j => j.GetProperty("content").GetString())
.Should()
.AllBe("This has invite");
.AllBe("This is pinned");
}

[Fact]
public async Task I_can_filter_the_export_to_only_include_messages_that_have_been_pinned()
public async Task I_can_filter_the_export_to_only_include_messages_that_contain_guild_invites()
{
// Arrange
using var file = TempFile.Create();
Expand All @@ -128,7 +128,7 @@ public async Task I_can_filter_the_export_to_only_include_messages_that_have_bee
ChannelIds = [ChannelIds.FilterTestCases],
ExportFormat = ExportFormat.Json,
OutputPath = file.Path,
MessageFilter = MessageFilter.Parse("has:pin")
MessageFilter = MessageFilter.Parse("has:invite")
}.ExecuteAsync(new FakeConsole());

// Assert
Expand All @@ -137,7 +137,7 @@ public async Task I_can_filter_the_export_to_only_include_messages_that_have_bee
.EnumerateArray()
.Select(j => j.GetProperty("content").GetString())
.Should()
.AllBe("This is pinned");
.AllBe("This has invite");
}

[Fact]
Expand Down

0 comments on commit 014712b

Please sign in to comment.