using NATS.Server.Protocol;

namespace NATS.Server.Core.Tests;

public class ClientKindCommandMatrixTests
{
    [Fact]
    public void Router_only_commands_are_rejected_for_client_kind()
    {
        var matrix = new ClientCommandMatrix();
        matrix.IsAllowed(ClientKind.Client, "RS+").ShouldBeFalse();
        matrix.IsAllowed(ClientKind.Router, "RS+").ShouldBeTrue();
    }
}
