예제 #1
0
        public string CompareBody(out string error)
        {
            error = null;
            try
            {
                JObject jsonBodyReceived = JObject.Parse(this.ResponseDataReceived.Body);
                JObject jsonBodyExpected = JObject.Parse(this.ResponseDataExpected.Body);

                StringBuilder s = HelperGenericHttpTester.CompareObjects(jsonBodyExpected, jsonBodyReceived);
                return(s.ToString());
            }
            catch (Exception ex)
            {
                error = ex.Message;
                return(null);
            }
        }