using KArtSell.Modules.SignalEngine.Domain;
namespace KArtSell.SignalEngine.UnitTests;
public sealed class SellDecisionEvidenceGuardTests
{
    [Fact] public void Rejects_lookahead_and_unit_confusion() {
        var now=DateTimeOffset.UtcNow;
        Assert.Throws<InvalidOperationException>(()=>SellDecisionEvidenceGuard.EnsureValid(new("e","d","m","c","sha",now,now.AddMinutes(1),.2m,.3m,.1m,.2m)));
        Assert.Throws<ArgumentOutOfRangeException>(()=>SellDecisionEvidenceGuard.EnsureValid(new("e","d","m","c","sha",now,now,20m,.3m,.1m,.2m)));
    }
}
