Files
jdescopingtool/NEW/tests/JdeScoping.ConfigManager.Tests/TestAppBuilder.cs
T
Joseph Doherty 937eb66ac8 test(configmanager): expand unit test coverage to 451 tests
Add comprehensive tests for services (ConnectionTestService, RuntimeConfigValidation),
ViewModels (PipelineEditor, dialogs, transformers), and Avalonia headless UI tests
for views and forms.
2026-01-27 07:24:55 -05:00

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());
}