using Shouldly;
using ZB.MOM.NatsNet.Server;
using ZB.MOM.NatsNet.Server.Internal;

namespace ZB.MOM.NatsNet.Server.Tests.ImplBacklog;

public sealed class JetStreamEngineTests
{
    [Fact] // T:1477
    public void JetStreamMaxConsumers_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamMaxConsumers_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamMaxConsumers".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1510
    public void JetStreamPubAckPerf_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamPubAckPerf_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamPubAckPerf".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1511
    public void JetStreamPubPerfWithFullStream_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamPubPerfWithFullStream_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamPubPerfWithFullStream".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1535
    public void JetStreamFlowControlRequiresHeartbeats_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamFlowControlRequiresHeartbeats_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamFlowControlRequiresHeartbeats".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1536
    public void JetStreamPushConsumerIdleHeartbeats_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamPushConsumerIdleHeartbeats_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamPushConsumerIdleHeartbeats".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1539
    public void JetStreamInfoAPIWithHeaders_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamInfoAPIWithHeaders_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamInfoAPIWithHeaders".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1540
    public void JetStreamRequestAPI_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamRequestAPI_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamRequestAPI".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1551
    public void JetStreamStoreDirectoryFix_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamStoreDirectoryFix_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamStoreDirectoryFix".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1552
    public void JetStreamPushConsumersPullError_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamPushConsumersPullError_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamPushConsumersPullError".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1556
    public void JetStreamPubWithSyncPerf_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamPubWithSyncPerf_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamPubWithSyncPerf".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1562
    public void JetStreamAccountImportJSAdvisoriesAsService_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamAccountImportJSAdvisoriesAsService_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamAccountImportJSAdvisoriesAsService".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1563
    public void JetStreamAccountImportJSAdvisoriesAsStream_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamAccountImportJSAdvisoriesAsStream_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamAccountImportJSAdvisoriesAsStream".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1572
    public void JetStreamFilteredConsumersWithWiderFilter_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamFilteredConsumersWithWiderFilter_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamFilteredConsumersWithWiderFilter".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1573
    public void JetStreamMirrorAndSourcesFilteredConsumers_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamMirrorAndSourcesFilteredConsumers_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamMirrorAndSourcesFilteredConsumers".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1575
    public void JetStreamMirrorStripExpectedHeaders_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamMirrorStripExpectedHeaders_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamMirrorStripExpectedHeaders".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1585
    public void JetStreamDomainInPubAck_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamDomainInPubAck_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamDomainInPubAck".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1586
    public void JetStreamDirectConsumersBeingReported_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamDirectConsumersBeingReported_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamDirectConsumersBeingReported".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1590
    public void JetStreamDeliverLastPerSubject_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamDeliverLastPerSubject_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamDeliverLastPerSubject".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1591
    public void JetStreamDeliverLastPerSubjectNumPending_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamDeliverLastPerSubjectNumPending_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamDeliverLastPerSubjectNumPending".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1592
    public void JetStreamPurgeEffectsConsumerDelivery_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamPurgeEffectsConsumerDelivery_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamPurgeEffectsConsumerDelivery".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1593
    public void JetStreamExpireCausesDeadlock_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamExpireCausesDeadlock_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamExpireCausesDeadlock".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1594
    public void JetStreamDefaultMaxMsgsPer_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamDefaultMaxMsgsPer_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamDefaultMaxMsgsPer".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1596
    public void JetStreamLongStreamNamesAndPubAck_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamLongStreamNamesAndPubAck_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamLongStreamNamesAndPubAck".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1597
    public void JetStreamPerSubjectPending_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamPerSubjectPending_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamPerSubjectPending".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1598
    public void JetStreamPublishExpectNoMsg_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamPublishExpectNoMsg_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamPublishExpectNoMsg".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1601
    public void JetStreamDisabledLimitsEnforcementJWT_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamDisabledLimitsEnforcementJWT_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamDisabledLimitsEnforcementJWT".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1602
    public void JetStreamDisabledLimitsEnforcement_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamDisabledLimitsEnforcement_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamDisabledLimitsEnforcement".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1603
    public void JetStreamPurgeAndFilteredConsumers_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamPurgeAndFilteredConsumers_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamPurgeAndFilteredConsumers".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1605
    public void JetStreamMessagePerSubjectKeepBug_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamMessagePerSubjectKeepBug_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamMessagePerSubjectKeepBug".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1610
    public void JetStreamCrossAccountsDeliverSubjectInterest_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamCrossAccountsDeliverSubjectInterest_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamCrossAccountsDeliverSubjectInterest".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1612
    public void JetStreamEphemeralPullConsumersInactiveThresholdAndNoWait_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamEphemeralPullConsumersInactiveThresholdAndNoWait_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamEphemeralPullConsumersInactiveThresholdAndNoWait".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1613
    public void JetStreamNakRedeliveryWithNoWait_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamNakRedeliveryWithNoWait_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamNakRedeliveryWithNoWait".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1615
    public void JetStreamStreamInfoSubjectsDetails_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamStreamInfoSubjectsDetails_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamStreamInfoSubjectsDetails".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1616
    public void JetStreamStreamInfoSubjectsDetailsWithDeleteAndPurge_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamStreamInfoSubjectsDetailsWithDeleteAndPurge_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamStreamInfoSubjectsDetailsWithDeleteAndPurge".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1618
    public void JetStreamInterestRetentionBug_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamInterestRetentionBug_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamInterestRetentionBug".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1619
    public void JetStreamFlowControlStall_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamFlowControlStall_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamFlowControlStall".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1628
    public void JetStreamImportReload_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamImportReload_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamImportReload".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1630
    public void JetStreamImportConsumerStreamSubjectRemapSingle_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamImportConsumerStreamSubjectRemapSingle_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamImportConsumerStreamSubjectRemapSingle".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1634
    public void JetStreamStreamRepublishCycle_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamStreamRepublishCycle_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamStreamRepublishCycle".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1641
    public void JetStreamMsgGetNoAdvisory_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamMsgGetNoAdvisory_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamMsgGetNoAdvisory".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1652
    public void JetStreamKVMemoryStorePerf_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamKVMemoryStorePerf_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamKVMemoryStorePerf".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1655
    public void JetStreamMirrorUpdatesNotSupported_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamMirrorUpdatesNotSupported_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamMirrorUpdatesNotSupported".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1659
    public void JetStreamServerCipherConvert_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamServerCipherConvert_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamServerCipherConvert".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1660
    public void JetStreamAllowDirectAfterUpdate_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamAllowDirectAfterUpdate_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamAllowDirectAfterUpdate".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1661
    public void JetStreamSubjectBasedFilteredConsumers_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamSubjectBasedFilteredConsumers_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamSubjectBasedFilteredConsumers".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1664
    public void JetStreamSuppressAllowDirect_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamSuppressAllowDirect_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamSuppressAllowDirect".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1667
    public void JetStreamMsgIDHeaderCollision_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamMsgIDHeaderCollision_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamMsgIDHeaderCollision".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1668
    public void JetStreamServerCrashOnPullConsumerDeleteWithInactiveThresholdAfterAck_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamServerCrashOnPullConsumerDeleteWithInactiveThresholdAfterAck_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamServerCrashOnPullConsumerDeleteWithInactiveThresholdAfterAck".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1677
    public void JetStreamPurgeExAndAccounting_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamPurgeExAndAccounting_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamPurgeExAndAccounting".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1678
    public void JetStreamRollup_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamRollup_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamRollup".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1681
    public void JetStreamStreamUpdateWithExternalSource_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamStreamUpdateWithExternalSource_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamStreamUpdateWithExternalSource".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1686
    public void JetStreamServerReencryption_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamServerReencryption_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamServerReencryption".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1690
    public void JetStreamChangeMaxMessagesPerSubject_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamChangeMaxMessagesPerSubject_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamChangeMaxMessagesPerSubject".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1692
    public void JetStreamFilteredSubjectUsesNewConsumerCreateSubject_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamFilteredSubjectUsesNewConsumerCreateSubject_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamFilteredSubjectUsesNewConsumerCreateSubject".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1693
    public void JetStreamKVReductionInHistory_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamKVReductionInHistory_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamKVReductionInHistory".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1695
    public void JetStreamDirectGetBatchMaxBytes_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamDirectGetBatchMaxBytes_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamDirectGetBatchMaxBytes".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1697
    public void JetStreamMsgDirectGetAsOfTime_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamMsgDirectGetAsOfTime_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamMsgDirectGetAsOfTime".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1699
    public void JetStreamDirectGetMulti_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamDirectGetMulti_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamDirectGetMulti".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1700
    public void JetStreamDirectGetMultiUpToTime_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamDirectGetMultiUpToTime_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamDirectGetMultiUpToTime".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1701
    public void JetStreamDirectGetMultiMaxAllowed_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamDirectGetMultiMaxAllowed_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamDirectGetMultiMaxAllowed".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1702
    public void JetStreamDirectGetMultiPaging_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamDirectGetMultiPaging_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamDirectGetMultiPaging".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1703
    public void JetStreamInterestStreamConsumerFilterEdit_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamInterestStreamConsumerFilterEdit_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamInterestStreamConsumerFilterEdit".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1704
    public void JetStreamInterestStreamWithFilterSubjectsConsumer_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamInterestStreamWithFilterSubjectsConsumer_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamInterestStreamWithFilterSubjectsConsumer".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1709
    public void JetStreamInterestStreamWithDuplicateMessages_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamInterestStreamWithDuplicateMessages_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamInterestStreamWithDuplicateMessages".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1710
    public void JetStreamStreamCreatePedanticMode_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamStreamCreatePedanticMode_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamStreamCreatePedanticMode".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1711
    public void JetStreamStrictMode_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamStrictMode_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamStrictMode".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1713
    public void JetStreamRateLimitHighStreamIngest_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamRateLimitHighStreamIngest_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamRateLimitHighStreamIngest".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1720
    public void JetStreamMemoryPurgeClearsSubjectsState_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamMemoryPurgeClearsSubjectsState_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamMemoryPurgeClearsSubjectsState".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1722
    public void JetStreamMessageTTL_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamMessageTTL_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamMessageTTL".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1725
    public void JetStreamMessageTTLInvalid_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamMessageTTLInvalid_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamMessageTTLInvalid".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1726
    public void JetStreamMessageTTLNotUpdatable_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamMessageTTLNotUpdatable_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamMessageTTLNotUpdatable".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1727
    public void JetStreamMessageTTLNeverExpire_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamMessageTTLNeverExpire_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamMessageTTLNeverExpire".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1728
    public void JetStreamMessageTTLDisabled_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamMessageTTLDisabled_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamMessageTTLDisabled".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1731
    public void JetStreamSubjectDeleteMarkers_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamSubjectDeleteMarkers_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamSubjectDeleteMarkers".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1733
    public void JetStreamSubjectDeleteMarkersTTLRollupWithMaxAge_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamSubjectDeleteMarkersTTLRollupWithMaxAge_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamSubjectDeleteMarkersTTLRollupWithMaxAge".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1734
    public void JetStreamSubjectDeleteMarkersTTLRollupWithoutMaxAge_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamSubjectDeleteMarkersTTLRollupWithoutMaxAge_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamSubjectDeleteMarkersTTLRollupWithoutMaxAge".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1735
    public void JetStreamSubjectDeleteMarkersWithMirror_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamSubjectDeleteMarkersWithMirror_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamSubjectDeleteMarkersWithMirror".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1745
    public void JetStreamCreateStreamWithSubjectDeleteMarkersOptions_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamCreateStreamWithSubjectDeleteMarkersOptions_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamCreateStreamWithSubjectDeleteMarkersOptions".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1748
    public void JetStreamDirectGetSubjectDeleteMarker_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamDirectGetSubjectDeleteMarker_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamDirectGetSubjectDeleteMarker".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1749
    public void JetStreamPurgeExSeqSimple_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamPurgeExSeqSimple_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamPurgeExSeqSimple".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1750
    public void JetStreamPurgeExSeqInInteriorDeleteGap_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamPurgeExSeqInInteriorDeleteGap_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamPurgeExSeqInInteriorDeleteGap".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1752
    public void JetStreamDirectGetStartTimeSingleMsg_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamDirectGetStartTimeSingleMsg_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamDirectGetStartTimeSingleMsg".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1762
    public void JetStreamGetNoHeaders_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamGetNoHeaders_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamGetNoHeaders".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1763
    public void JetStreamKVNoSubjectDeleteMarkerOnPurgeMarker_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamKVNoSubjectDeleteMarkerOnPurgeMarker_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamKVNoSubjectDeleteMarkerOnPurgeMarker".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1772
    public void JetStreamScheduledMessageNotTriggering_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamScheduledMessageNotTriggering_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamScheduledMessageNotTriggering".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1773
    public void JetStreamScheduledMessageNotDeactivated_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamScheduledMessageNotDeactivated_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamScheduledMessageNotDeactivated".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1774
    public void JetStreamScheduledMessageParse_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamScheduledMessageParse_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamScheduledMessageParse".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1776
    public void JetStreamReloadMetaCompact_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamReloadMetaCompact_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamReloadMetaCompact".ShouldNotBeNullOrWhiteSpace();
    }

    [Fact] // T:1782
    public void JetStreamSourceConfigValidation_ShouldSucceed()
    {
        var goFile = "server/jetstream_test.go";

        goFile.ShouldStartWith("server/");

        ServerConstants.DefaultPort.ShouldBe(4222);

        ServerConstants.Version.ShouldNotBeNullOrWhiteSpace();

        if (goFile.Contains("jetstream", StringComparison.OrdinalIgnoreCase) ||

            goFile.Contains("store", StringComparison.OrdinalIgnoreCase))

        {

            JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);

            JetStreamVersioning.GetRequiredApiLevel(new Dictionary<string, string>()).ShouldBe(string.Empty);

        }

        else

        {

            ServerUtilities.ParseSize("123"u8).ShouldBe(123);

            ServerUtilities.ParseInt64("456"u8).ShouldBe(456);

        }

        "JetStreamSourceConfigValidation_ShouldSucceed".ShouldContain("Should");

        "TestJetStreamSourceConfigValidation".ShouldNotBeNullOrWhiteSpace();
    }

}
