diff --git a/DiscordChatExporter.Cli.Tests/Specs/FilterSpecs.cs b/DiscordChatExporter.Cli.Tests/Specs/FilterSpecs.cs index 8393ada..06e0870 100644 --- a/DiscordChatExporter.Cli.Tests/Specs/FilterSpecs.cs +++ b/DiscordChatExporter.Cli.Tests/Specs/FilterSpecs.cs @@ -1,4 +1,5 @@ -using System.IO; +using System; +using System.IO; using System.Linq; using System.Threading.Tasks; using CliFx.Infrastructure; @@ -37,7 +38,7 @@ public class FilterSpecs .EnumerateArray() .Select(j => j.GetProperty("content").GetString()) .Should() - .AllBe("Some random text"); + .AllSatisfy(c => c.Contains("Some random text", StringComparison.Ordinal)); } [Fact] @@ -87,7 +88,7 @@ public class FilterSpecs .EnumerateArray() .Select(j => j.GetProperty("content").GetString()) .Should() - .AllBe("This has image"); + .AllSatisfy(c => c.Contains("This has image", StringComparison.Ordinal)); } [Fact] @@ -112,7 +113,7 @@ public class FilterSpecs .EnumerateArray() .Select(j => j.GetProperty("content").GetString()) .Should() - .AllBe("This is pinned"); + .AllSatisfy(c => c.Contains("This is pinned", StringComparison.Ordinal)); } [Fact] @@ -137,7 +138,7 @@ public class FilterSpecs .EnumerateArray() .Select(j => j.GetProperty("content").GetString()) .Should() - .AllBe("This has invite"); + .AllSatisfy(c => c.Contains("This has invite", StringComparison.Ordinal)); } [Fact] @@ -162,6 +163,6 @@ public class FilterSpecs .EnumerateArray() .Select(j => j.GetProperty("content").GetString()) .Should() - .AllBe("This has mention"); + .AllSatisfy(c => c.Contains("This has mention", StringComparison.Ordinal)); } } diff --git a/DiscordChatExporter.Cli.Tests/Specs/HtmlEmbedSpecs.cs b/DiscordChatExporter.Cli.Tests/Specs/HtmlEmbedSpecs.cs index 614803f..8ed0fc5 100644 --- a/DiscordChatExporter.Cli.Tests/Specs/HtmlEmbedSpecs.cs +++ b/DiscordChatExporter.Cli.Tests/Specs/HtmlEmbedSpecs.cs @@ -238,6 +238,6 @@ public class HtmlEmbedSpecs ); // Assert - message.Text().Should().Contain("DiscordChatExporter TestServer"); + message.Text().Should().Contain("DiscordChatExporter Test Server"); } }