Files
natsdotnet/tests/NATS.Server.Tests/ClientKindCommandMatrixTests.cs
2026-02-23 05:41:42 -05:00

15 lines
379 B
C#

using NATS.Server.Protocol;
namespace NATS.Server.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();
}
}