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() {