固定の理由がほかの理由より先に決まる試験を追加する

このコミットが含まれているのは:
routersys committed 2026-10-02 13:17:23 +09:00
1 親 7d0d888f78
コミット 83778b19e1
1ファイル変更
+16
+16
ファイルの表示
@@ -185,6 +185,22 @@ public sealed class ComputeGuardianSelectionTests
Assert.Same(cause, report.InnerException);
}
[Fact]
public void ThePinComesBeforeEveryOtherReason()
{
var (guardian, _) = CreateGuardian();
var software = Device(1L, isSoftware: true);
var small = Device(2L, capacity: 1000L);
guardian.Fail(software, Workload, ComputeFailure.DeviceLost, null);
guardian.Fail(small, Workload, ComputeFailure.DeviceLost, null);
var softwareDecision = guardian.Select(software, Workload, PassingSelfTest);
var smallDecision = guardian.Select(small, Workload, PassingSelfTest);
Assert.Equal(new ComputeDecision(ComputeRoute.Cpu, ComputeRouteReason.Pinned), softwareDecision);
Assert.Equal(new ComputeDecision(ComputeRoute.Cpu, ComputeRouteReason.Pinned), smallDecision);
}
[Fact]
public void ConcurrentSelectionsRunTheSelfTestOnce()
{