Update package versions and tighten layout overflow
build-winui / winui (push) Has been cancelled

This commit is contained in:
QWQLwToo
2026-06-30 12:42:59 +08:00
parent 1d0e862299
commit 6f20021da4
11 changed files with 39 additions and 35 deletions
@@ -14,7 +14,7 @@ public sealed class RemoteMediaCatalogTests
Assert.AreEqual("1.0.6", catalog.LayoutVersion);
Assert.AreEqual("grid", catalog.UiConfig.DefaultView);
Assert.IsTrue(catalog.Categories.Count >= 2);
Assert.IsGreaterThanOrEqualTo(2, catalog.Categories.Count);
var image = catalog.Categories.Single(category => category.Id == "image");
Assert.IsTrue(image.Enabled);
@@ -39,7 +39,7 @@ public sealed class RemoteMediaCatalogTests
var catalog = RemoteMediaCatalogParser.Parse(ReadRepoFile("box-old", "server", "media-types.json"));
Assert.AreEqual("1.0.8", catalog.LayoutVersion);
Assert.IsTrue(catalog.Categories.Count >= 2);
Assert.IsGreaterThanOrEqualTo(2, catalog.Categories.Count);
Assert.IsTrue(catalog.Categories.Any(category => category.Id == "image" && category.Sources.Count >= 7));
Assert.IsTrue(catalog.Categories.Any(category => category.Id == "video" && category.Sources.Any(source => source.Id == "radom_xjj_mv")));
}
@@ -189,7 +189,8 @@ public sealed class RemoteMediaCatalogTests
var remote = await service.LoadAsync(forceRefresh: true);
Assert.AreEqual(RemoteMediaCatalogLoadSource.Remote, remote.Source);
Assert.IsTrue(api.LastUri?.Query.Contains("_=", StringComparison.Ordinal) == true);
Assert.IsNotNull(api.LastUri);
StringAssert.Contains(api.LastUri.Query, "_=");
Assert.IsTrue(File.Exists(Path.Combine(paths.Cache, "remote-media", "media-types.json")));
var fallback = new RemoteMediaCatalogService(paths, new FakeApiManager(string.Empty, success: false));