using Xunit;
namespace Kbx.Shared.Telemetry.Tests;
public sealed class KbxUxTelemetryGuardTests
{
 [Fact] public void Rejects_unknown_event()=>Assert.Throws<ArgumentException>(()=>KbxUxTelemetryGuard.Validate(new("unknown.event",null,null,Guid.NewGuid(),null,null,null,null,DateTimeOffset.UtcNow,null,1,null)));
 [Fact] public void Rejects_non_allowlisted_attribute()=>Assert.Throws<ArgumentException>(()=>KbxUxTelemetryGuard.Validate(new("screen.open","OMS-ORD-001","1.0.0",Guid.NewGuid(),null,null,null,null,DateTimeOffset.UtcNow,null,1,new Dictionary<string,string>{{"phone","01012345678"}})));
}
