937eb66ac8
Add comprehensive tests for services (ConnectionTestService, RuntimeConfigValidation), ViewModels (PipelineEditor, dialogs, transformers), and Avalonia headless UI tests for views and forms.
22 lines
718 B
C#
22 lines
718 B
C#
using Avalonia;
|
|
using Avalonia.Headless;
|
|
using JdeScoping.ConfigManager;
|
|
|
|
[assembly: AvaloniaTestApplication(typeof(JdeScoping.ConfigManager.Tests.TestAppBuilder))]
|
|
|
|
namespace JdeScoping.ConfigManager.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());
|
|
}
|