Ejemplo n.º 1
0
        public void GetData_Test()
        {
            var result1   = jsonObjectReaderTracker.GetData(mockTrackerPath);
            var expected1 = JsonConvert.DeserializeObject <TrackerRecord>(mockTrackerData);

            Assert.AreEqual(JsonConvert.SerializeObject(expected1), JsonConvert.SerializeObject(result1));


            var result2   = jsonObjectReaderDevice.GetData(mockDevicePath);
            var expected2 = JsonConvert.DeserializeObject <DeviceRecord>(mockDeviceData);

            Assert.AreEqual(JsonConvert.SerializeObject(expected2), JsonConvert.SerializeObject(result2));
        }