From 6971ff70a779d86bdf7296752e379c0508f0979f Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 10 Oct 2026 07:11:55 +0200 Subject: [PATCH] ShipValidationTests: every Windows device name, alone and before a dot Builds; the id-refusal cases pin prn and aux, which the first set left unchecked. Co-Authored-By: Claude Opus 5.5 --- tests/Aetheria.Shared.Tests/ShipValidationTests.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/Aetheria.Shared.Tests/ShipValidationTests.cs b/tests/Aetheria.Shared.Tests/ShipValidationTests.cs index 8c195e895..7081c58f9 100644 --- a/tests/Aetheria.Shared.Tests/ShipValidationTests.cs +++ b/tests/Aetheria.Shared.Tests/ShipValidationTests.cs @@ -175,10 +175,8 @@ public sealed class ShipValidationTests Add("id-null", s => s.Visual.Id = null, "Ship ID is required"); Add("id-blank", s => s.Visual.Id = " ", "Ship ID is required"); - Add("id-device-con", s => s.Visual.Id = "con", "Windows device name"); - Add("id-device-with-extension", s => s.Visual.Id = "nul.x", "Windows device name"); - Add("id-device-com1", s => s.Visual.Id = "com1", "Windows device name"); - Add("id-device-lpt9", s => s.Visual.Id = "lpt9", "Windows device name"); + foreach (var device in new[] { "con", "prn", "aux", "nul", "nul.x", "com1", "com9", "lpt1", "lpt9", "con.txt" }) + Add("id-device-" + device, s => s.Visual.Id = device, "Windows device name"); Add("id-trailing-dot", s => s.Visual.Id = "abc.", "must not end with a dot"); Add("hull-null", s => s.Hull = null, "hull data is required"); Add("hull-name-null", s => s.Hull.Name = null, "hull name is required");