コード例 #1
0
        public void Eio3NullNamespaceEmptyQuery()
        {
            var    handler = new Eio3Handler();
            string message = handler.CreateConnectionMessage(null, new Dictionary <string, string>());

            Assert.AreEqual("40", message);
        }
コード例 #2
0
        public void Eio3NullNamespaceNullQuery()
        {
            var    handler = new Eio3Handler();
            string message = handler.CreateConnectionMessage(null, null);

            Assert.AreEqual("40", message);
        }
コード例 #3
0
        public void Eio3NullNamespace1Query()
        {
            var    handler = new Eio3Handler();
            string message = handler.CreateConnectionMessage(null, new Dictionary <string, string>
            {
                { "key", "val" }
            });

            Assert.AreEqual("40?key=val", message);
        }
コード例 #4
0
        public void Eio3Namespace2Query()
        {
            var    handler = new Eio3Handler();
            string message = handler.CreateConnectionMessage("/nsp", new Dictionary <string, string>
            {
                { "key", "val" },
                { "token", "V2" }
            });

            Assert.AreEqual("40/nsp?key=val&token=V2,", message);
        }