test are still ok!

This commit is contained in:
Paul Schneider 2026-08-25 14:16:49 +01:00
commit beeac58628
Signed by: notazof
GPG key ID: 1DD5D838E5343B06
27 changed files with 170 additions and 258 deletions

View file

@ -73,7 +73,7 @@ public class AddCircleMemberDialogTests
return context;
}
/// <summary>
/// Mount a real <see cref="MainWindow"/>, build a minimal
/// Mount a real <see cref="MainView"/>, build a minimal
/// DI graph, push <see cref="CirclesPage"/> then the
/// <see cref="AddCircleMemberDialog"/> on top of it.
/// Returns the stack size so the test can pin the delta.
@ -98,10 +98,9 @@ public class AddCircleMemberDialogTests
services.AddTransient<AddCircleMemberDialogViewModel>();
var sp = services.BuildServiceProvider();
context.Window = new MainWindow();
context.Window = new MainView();
context.App = (PostIt.App)Application.Current!;
context.App.AttachMainWindow(context.Window);
context.Window.Show();
context.page = sp.GetRequiredService<CirclesPage>();
context.Window.NavRoot.PushAsync(context.page).GetAwaiter().GetResult();