1fc7792cd1
Rename ConfigManager to ConfigManager.Ui to match the Core/CLI/UI project structure, and split the monolithic test project into Core.Tests, Cli.Tests, and Ui.Tests to align with the source project organization.
22 lines
727 B
C#
22 lines
727 B
C#
using Avalonia;
|
|
using Avalonia.Headless;
|
|
using JdeScoping.ConfigManager.Ui;
|
|
|
|
[assembly: AvaloniaTestApplication(typeof(JdeScoping.ConfigManager.Ui.Tests.TestAppBuilder))]
|
|
|
|
namespace JdeScoping.ConfigManager.Ui.Tests;
|
|
|
|
/// <summary>
|
|
/// Provides a headless Avalonia application builder for UI tests.
|
|
/// </summary>
|
|
public class TestAppBuilder
|
|
{
|
|
/// <summary>
|
|
/// Builds the Avalonia application configured for headless testing.
|
|
/// </summary>
|
|
/// <returns>An <see cref="AppBuilder"/> configured with headless platform options.</returns>
|
|
public static AppBuilder BuildAvaloniaApp() =>
|
|
AppBuilder.Configure<App>()
|
|
.UseHeadless(new AvaloniaHeadlessPlatformOptions());
|
|
}
|