using Avalonia; using Avalonia.Headless; [assembly: AvaloniaTestApplication(typeof(AcDream.Launcher.Tests.TestAppBuilder))] namespace AcDream.Launcher.Tests; /// /// Headless Avalonia application entry point for [AvaloniaFact]/ /// [AvaloniaTheory] tests (see #399). Reuses the launcher's real /// so the FluentTheme styles declared in App.axaml are /// live for every test — 's controls (TreeView, /// Button, TextBox, ...) need a real control theme to template and focus /// correctly, not just an unstyled visual tree. /// public static class TestAppBuilder { public static AppBuilder BuildAvaloniaApp() => AppBuilder.Configure() .UseHeadless(new AvaloniaHeadlessPlatformOptions()); }