test(postit): run all Avalonia UI tests in the shared collection fixture

Replace [AvaloniaFact]/[AvaloniaTheory] and direct GetOrStartForAssembly
dispatches with ui.RunAsync in AvaloniaUiCollection, avoiding a second
headless session that could hang PodcastBroadcasterTests. Add a synchronous
RunAsync overload and update MessagingSessionTests contact-preference
assertions for the audio-only capabilities announced on Linux desktop.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Paul Schneider 2026-11-16 15:55:32 +00:00
commit 8ab3c02ebc
Signed by: notazof
GPG key ID: AD4B9B545FBD7D12
27 changed files with 443 additions and 332 deletions

View file

@ -38,6 +38,12 @@ public sealed class AvaloniaUiFixture : IAsyncLifetime
}, ct);
}
public Task RunAsync(Action action, CancellationToken ct) => RunAsync(() =>
{
action();
return Task.CompletedTask;
}, ct);
public Task WithWindowAsync(Func<Control> createContent, Func<Window, Task> test, CancellationToken ct,
double width = 800, double height = 600) => RunAsync(async () =>
{