using StellaOps.AirGap.Time.Models; using StellaOps.AirGap.Time.Services; namespace StellaOps.AirGap.Time.Tests; public class RoughtimeVerifierTests { [Fact] public void StubTokenProducesDeterministicAnchor() { var token = new byte[] { 0xAA, 0xBB, 0xCC, 0xDD }; var verifier = new RoughtimeVerifier(); var trust = new[] { new TimeTrustRoot("root1", new byte[] { 0x10, 0x20 }, "ed25519") }; var result = verifier.Verify(token, trust, out var anchor); Assert.True(result.IsValid); Assert.Equal("roughtime-stub-verified", result.Reason); Assert.Equal("Roughtime", anchor.Format); Assert.Equal("root1", anchor.SignatureFingerprint); } }