From 5a2234950f9e0e70444be2ea621d2568e42da167 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 22 Oct 2026 22:28:10 +0200 Subject: [PATCH] Caching tests: readable ref-list assertion Co-Authored-By: Claude Sonnet 5.5 --- tests/GameCult.Caching.Tests/RefListDriftTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/GameCult.Caching.Tests/RefListDriftTests.cs b/tests/GameCult.Caching.Tests/RefListDriftTests.cs index ee59240c..a8b7f3e3 100644 --- a/tests/GameCult.Caching.Tests/RefListDriftTests.cs +++ b/tests/GameCult.Caching.Tests/RefListDriftTests.cs @@ -67,7 +67,7 @@ namespace GameCult.Caching.Tests using var reopened = new CultCache(); reopened.AddBackingStore(new SingleFileMessagePackBackingStore(copy)); await reopened.PullAllBackingStoresAsync(); - Assert.That(reopened.GetAll().Select(target => target.Name), Is.EquivalentTo(new[] { "alpha", "beta", "gamma" })); + Assert.That(string.Join(",", reopened.GetAll().Select(target => target.Name).OrderBy(name => name)), Is.EqualTo("alpha,beta,gamma")); Assert.That(reopened.GetAll().Single().Items.Select(item => item.Key.Value).ToArray(), Is.EqualTo(new[] { "alpha", "beta" })); } finally