public void JsonMessageConnection_JsonMessage_Test1()
        {
            using (var connection = new JsonMessageConnection())
            {
                MessageReceivedEventArgs e = null;
                connection.MessageReceived += (sender, args) => e = args;
                bool updateFinishedRaised = false;
                connection.UpdateFinished += (sender, args) => updateFinishedRaised = true;

                connection.ProcessData(TestData.QueueInfo, TestData.QueueInfo.Length);

                Assert.AreEqual(MessageKey.QueueInfo, e.JsonMessage.Key);
                Assert.IsTrue(e.JsonMessage.Value.Length > 0);
                Assert.IsNull(e.TypedMessage);
                Assert.IsNull(e.DataType);
                Assert.IsTrue(updateFinishedRaised);
            }
        }
      public void JsonMessageConnection_JsonMessage_Test1()
      {
         using (var connection = new JsonMessageConnection())
         {
            MessageReceivedEventArgs e = null;
            connection.MessageReceived += (sender, args) => e = args;
            bool updateFinishedRaised = false;
            connection.UpdateFinished += (sender, args) => updateFinishedRaised = true;

            connection.ProcessData(TestData.QueueInfo, TestData.QueueInfo.Length);

            Assert.AreEqual(MessageKey.QueueInfo, e.JsonMessage.Key);
            Assert.IsTrue(e.JsonMessage.Value.Length > 0);
            Assert.IsNull(e.TypedMessage);
            Assert.IsNull(e.DataType);
            Assert.IsTrue(updateFinishedRaised);
         }
      }