Merge pull request #5010 from Unity-Technologies/boehm-gc-alloc-fixed-sre
[mono.git] / mono / tests / remoting4.cs
index c82a6d3444350ef59238ae239e8acb64e9399dac..e26edf524907691c5e61b8599ef67fcaa0786905 100644 (file)
@@ -169,9 +169,16 @@ namespace RemotingTest
                        GenericIFace iface = (GenericIFace)myobj;
                        if (iface.Foo <int> () != 0)
                                return 5;
-                       if (iface.Foo <string> () != "")
+                       if (iface.Foo <string> () != null)
                                return 6;
+
+                       // Test type identity (#504886, comment #10 ff.)
+
+                       if (typeof (R1) != myobj.GetType ())
+                               return 7;
        
+                       AppDomain.Unload (app2);
+
                        Console.WriteLine("test-ok");
                        return 0;
                }