public void JsonCloneAnyObject() { var myObject = new MyPlainObject { Id = Guid.NewGuid(), Name = _random.AnyString(8), Timestamp = DateTime.UtcNow, Value = _random.Any(), DataBlock = _random.AnyBytes(128), }; var clonedObject = myObject.JsonClone(); Assert.IsFalse(ReferenceEquals(myObject, clonedObject)); Assert.AreEqual(myObject.Id, clonedObject.Id); Assert.AreEqual(myObject.Name, clonedObject.Name); Assert.AreEqual(myObject.Timestamp, clonedObject.Timestamp); Assert.AreEqual(myObject.Value, clonedObject.Value); Assert.AreEqual(myObject.DataBlock, clonedObject.DataBlock); }