From f6e1c357b9a6fc1fd71b22af03cba7a3593dddec Mon Sep 17 00:00:00 2001 From: routersys Date: Fri, 2 Oct 2026 13:19:14 +0900 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=B7=B1=E8=A9=A6=E9=A8=93=E3=82=92?= =?UTF-8?q?=E6=B8=A1=E3=81=95=E3=81=AA=E3=81=84=E9=81=B8=E6=8A=9E=E3=82=92?= =?UTF-8?q?=E6=8B=92=E3=82=80=E8=A9=A6=E9=A8=93=E3=82=92=E8=BF=BD=E5=8A=A0?= =?UTF-8?q?=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ComputeGuard.Tests/ComputeGuardianSelectionTests.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ComputeGuard.Tests/ComputeGuardianSelectionTests.cs b/ComputeGuard.Tests/ComputeGuardianSelectionTests.cs index 7cd207f..9186a03 100644 --- a/ComputeGuard.Tests/ComputeGuardianSelectionTests.cs +++ b/ComputeGuard.Tests/ComputeGuardianSelectionTests.cs @@ -222,6 +222,18 @@ public sealed class ComputeGuardianSelectionTests Assert.All(decisions, decision => Assert.Equal(new ComputeDecision(ComputeRoute.Gpu, ComputeRouteReason.Trusted), decision)); } + [Fact] + public void ASelfTestIsRequired() + { + var (guardian, reports) = CreateGuardian(); + + Action select = () => guardian.Select(Device(), Workload, null!); + + Assert.Throws(select); + Assert.Equal(ComputeHealth.Untested, guardian.HealthOf(1L)); + Assert.Empty(reports); + } + [Fact] public void ATrustedSelectionAllocatesNothing() {