OnlinePhotoShop.UnitTest.SerializationTest Function
Helper function that serializes an object into a stream and returns the deserialized object from the same stream.

Private object SerializationTest (object)
  Type Name Description  
    object obj Object for serialization.  
  Return Description  
    object Deserialized object.