Skip to content

A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.

1.2 KB
Raw Blame
using System.Collections.Generic;
using System.Linq;
using Statecraft.Sim;

public class ReleaseGateTests
{
    /// <summary>R-GATE-002: the Unity build gate (BuildGateTests) accepts the settlement-control strings review only with
    /// the sim's one canonical owner-review status, so the manifest's word must not drift from it.</summary>
    [Fact]
    public void SettlementControlStringsUseTheCanonicalSensitivityReviewStatus()
    {
        Assert.Equal("sensitivity-reviewed", ReleaseGate.ReviewedStatus);
    }

    /// <summary>R-GATE-001: an event tagged displacement must be sensitivity-reviewed before a shareable build.</summary>
    [Fact]
    public void AnUnreviewedDisplacementEventIsRefused()
    {
        var files = Fixture.Write(events: new Dictionary<string, string>
        {
            ["displacement.yaml"] = "id: displacement\ntitle: A decision\ntext: A decision is required.\nfrom: 1948-06-01\ntags: [displacement]\noptions:\n  - id: continue\n    text: Continue\nsources: [{ url: \"https://example.org/event\", checked: 2026-10-18 }]\nstatus: fact-checked\n",
        });

        Assert.Equal(new[] { "displacement" }, ReleaseGate.SensitiveUnreviewed(ContentLoader.Load(files)));
    }
}