public void BindAsSetsBindingKeyOn()
        {
            var @base = new DeclareQueue(ConnectSimple.Connect(), "queue");

            @base.Bind("ex", "bind-key");
            Assert.Equal("bind-key", @base.BindingKey.HasValue ? @base.BindingKey.Value.rKey : "null");
        }
        public void CheckBindingDeclare(string name)
        {
            if (name == "255")
            {
                name = name.PadRight(500, '-');
            }
            var @base = new DeclareQueue(ConnectSimple.Connect(), "queue");

            Assert.Throws <DeclarationException>(() => @base.Bind(name, ""));
        }