public static void TestException5()
        {
            GmqPathHelper.PathComponents pc = new GmqPathHelper.PathComponents();
            pc.type     = PublishableStateMessageHeader.MsgType.subscriptionRequest;
            pc.nodeName = "";
            pc.statePublisherOrConnectionType = "StructSix";

            Assert.Throws <ArgumentException>(() => { GmqPathHelper.compose(pc); });
        }
        static String getSubscriptionAddress(String publisher)
        {
            GmqPathHelper.PathComponents pc = new GmqPathHelper.PathComponents();
            pc.type     = PublishableStateMessageHeader.MsgType.subscriptionRequest;
            pc.nodeName = "test_node";
            pc.statePublisherOrConnectionType = publisher;
            string path = GmqPathHelper.compose(pc);

            return(path);
        }
        public static void Test10()
        {
            GmqPathHelper.PathComponents pc = new GmqPathHelper.PathComponents();
            pc.type     = PublishableStateMessageHeader.MsgType.subscriptionRequest;
            pc.nodeName = "test_node";
            pc.statePublisherOrConnectionType = "StructSix";

            string path = GmqPathHelper.compose(pc);

            Assert.AreEqual("globalmq:/test_node?sp=StructSix", path);

            checkParser(pc, path, PublishableStateMessageHeader.MsgType.subscriptionRequest);
        }
        public static void Test15()
        {
            GmqPathHelper.PathComponents pc = new GmqPathHelper.PathComponents();
            pc.type     = PublishableStateMessageHeader.MsgType.subscriptionRequest;
            pc.nodeName = "test_node";
            pc.statePublisherOrConnectionType = "StructSix";
            pc.authority         = "authority";
            pc.furtherResolution = true;
            pc.hasPort           = true;
            pc.port = 8080;

            string path = GmqPathHelper.compose(pc);

            Assert.AreEqual("globalmq://authority!gmq:8080/test_node?sp=StructSix", path);

            checkParser(pc, path, PublishableStateMessageHeader.MsgType.subscriptionRequest);
        }
        public static void TestException2()
        {
            GmqPathHelper.PathComponents pc = new GmqPathHelper.PathComponents();

            Assert.Throws <ArgumentException>(() => { GmqPathHelper.compose(pc); });
        }
 public static void TestException1()
 {
     Assert.Throws <ArgumentException>(() => { GmqPathHelper.compose(null); });
 }