public void TestUpdateDataPayload() { List <Property> _prop = new List <Property>(); List <DataResponse> _data = new List <DataResponse>(); TestCreateDataPayload(); _data = DataPayload.Get(); _prop.Add(new Property { key = "width", value = "200px" }); DataResponse updateRecord = new DataResponse() { Id = "Hello", Name = "Hello.png", User = "", Created_on = DateTime.Now.ToString(), Edited_on = DateTime.Now.ToString(), Extension = ".png", MimeType = "application/image", Size = 111, Type = "IMAGE", Url = "http://localhost/uploads/data/Hello.png", FilePath = "", Properties = _prop }; DataResponse updated = DataPayload.Update(updateRecord); Assert.NotEqual(_data[0].Properties, updateRecord.Properties); }