public void CreateObjRef() { MarshalObject objMarshal = new MarshalObject(); RemotingServices.SetObjectUriForMarshal(objMarshal, "MarshalByRefObjectTest.objMarshal1"); RemotingServices.Marshal(objMarshal); ObjRef objRef = objMarshal.CreateObjRef(typeof(MarshalObject)); Assert.AreEqual(objRef.URI, RemotingServices.GetObjectUri(objMarshal), "#A01"); // TODO: When implemented in the mono RemotingServices class //RemotingServices.Disconnect(objMarshal); }
public void CreateObjRefThrowException() { MarshalObject objMarshal = new MarshalObject(); ObjRef objRef = objMarshal.CreateObjRef(typeof(MarshalObject)); }