From 014712b7470c091229bba5b9e9b12e8c147dfa12 Mon Sep 17 00:00:00 2001 From: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> Date: Thu, 18 Jan 2024 20:25:30 +0200 Subject: [PATCH] Reorder tests --- DiscordChatExporter.Cli.Tests/Specs/FilterSpecs.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/DiscordChatExporter.Cli.Tests/Specs/FilterSpecs.cs b/DiscordChatExporter.Cli.Tests/Specs/FilterSpecs.cs index 023b7bf..8393ada 100644 --- a/DiscordChatExporter.Cli.Tests/Specs/FilterSpecs.cs +++ b/DiscordChatExporter.Cli.Tests/Specs/FilterSpecs.cs @@ -91,7 +91,7 @@ public class FilterSpecs } [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(); @@ -103,7 +103,7 @@ public class FilterSpecs ChannelIds = [ChannelIds.FilterTestCases], ExportFormat = ExportFormat.Json, OutputPath = file.Path, - MessageFilter = MessageFilter.Parse("has:invite") + MessageFilter = MessageFilter.Parse("has:pin") }.ExecuteAsync(new FakeConsole()); // Assert @@ -112,11 +112,11 @@ public class FilterSpecs .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(); @@ -128,7 +128,7 @@ public class FilterSpecs ChannelIds = [ChannelIds.FilterTestCases], ExportFormat = ExportFormat.Json, OutputPath = file.Path, - MessageFilter = MessageFilter.Parse("has:pin") + MessageFilter = MessageFilter.Parse("has:invite") }.ExecuteAsync(new FakeConsole()); // Assert @@ -137,7 +137,7 @@ public class FilterSpecs .EnumerateArray() .Select(j => j.GetProperty("content").GetString()) .Should() - .AllBe("This is pinned"); + .AllBe("This has invite"); } [Fact]