feat: add ClientKind enum with IsInternal extension

This commit is contained in:
Joseph Doherty
2026-02-23 05:15:06 -05:00
parent 4b3890f046
commit 5e11785bdf
2 changed files with 39 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
namespace NATS.Server.Tests;
public class InternalClientTests
{
[Theory]
[InlineData(ClientKind.Client, false)]
[InlineData(ClientKind.Router, false)]
[InlineData(ClientKind.Gateway, false)]
[InlineData(ClientKind.Leaf, false)]
[InlineData(ClientKind.System, true)]
[InlineData(ClientKind.JetStream, true)]
[InlineData(ClientKind.Account, true)]
public void IsInternal_returns_correct_value(ClientKind kind, bool expected)
{
kind.IsInternal().ShouldBe(expected);
}
}