From 100bbea83eefe5a5fbc96bc2d41c156bc3cea8f9 Mon Sep 17 00:00:00 2001 From: maj00r Date: Mon, 16 Nov 2026 15:42:56 +0100 Subject: [PATCH] fix(tests): the black box text tests wait their turn with the other Avalonia ones EventTextsTests and SecurityBrakingTests from #55 ran beside the Avalonia controls collection; their AppBuilder setup raced it and 28 UI tests failed with "Setup was already called" on every runner. Co-Authored-By: Claude Opus 5.5 --- StarterNG.Tests/BlackBox/EventTextsTests.cs | 1 + StarterNG.Tests/BlackBox/SecurityBrakingTests.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/StarterNG.Tests/BlackBox/EventTextsTests.cs b/StarterNG.Tests/BlackBox/EventTextsTests.cs index d3cd3ba..9b1635f 100644 --- a/StarterNG.Tests/BlackBox/EventTextsTests.cs +++ b/StarterNG.Tests/BlackBox/EventTextsTests.cs @@ -3,6 +3,7 @@ using Eu07.BlackBox.Views; namespace StarterNG.Tests.BlackBox; +[Collection(AvaloniaControls.Name)] public class EventTextsTests { [Theory] diff --git a/StarterNG.Tests/BlackBox/SecurityBrakingTests.cs b/StarterNG.Tests/BlackBox/SecurityBrakingTests.cs index 12e0816..8fb4fa9 100644 --- a/StarterNG.Tests/BlackBox/SecurityBrakingTests.cs +++ b/StarterNG.Tests/BlackBox/SecurityBrakingTests.cs @@ -4,6 +4,7 @@ using Eu07.BlackBox.Views; namespace StarterNG.Tests.BlackBox; +[Collection(AvaloniaControls.Name)] public class SecurityBrakingTests { // as the simulator writes them: one acknowledgement for both, so the cab signalling's buzzer is the alerter's too