private void CloudScriptHwCallback(RunCloudScriptResult result)
        {
            UUnitAssert.NotNull(result.ResultsEncoded);
            UUnitAssert.NotNull(result.Results);
            var jobj = result.Results as JsonObject;

            lastReceivedMessage = jobj["messageValue"] as string;
        }
        private void CloudScriptHwCallback(RunCloudScriptResult result)
        {
            UUnitAssert.NotNull(result.ResultsEncoded);
            JObject jobj = result.Results as JObject;

            UUnitAssert.NotNull(jobj);
            JToken jtok;

            jobj.TryGetValue("messageValue", out jtok);
            UUnitAssert.NotNull(jtok);
            JValue jval = jtok as JValue;

            UUnitAssert.NotNull(jval);
            lastReceivedMessage = jval.Value as string;
        }