using NATS.Server.Routes;

namespace NATS.Server.Clustering.Tests;

public class RouteAccountScopedTests
{
    [Fact]
    public void Route_connect_info_includes_account_scope()
    {
        var json = RouteConnection.BuildConnectInfoJson("S1", ["A"], "topology-v1");
        json.ShouldContain("\"accounts\":[\"A\"]");
        json.ShouldContain("\"topology\":\"topology-v1\"");
    }
}
