Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mono/tests/remoting1.cs')
-rw-r--r--mono/tests/remoting1.cs12
1 files changed, 10 insertions, 2 deletions
diff --git a/mono/tests/remoting1.cs b/mono/tests/remoting1.cs
index fdc8a665936..912133c45fe 100644
--- a/mono/tests/remoting1.cs
+++ b/mono/tests/remoting1.cs
@@ -63,8 +63,11 @@ public struct MyStruct {
public int b;
public int c;
}
+
+interface R2 {
+}
-class R1 : MarshalByRefObject {
+class R1 : MarshalByRefObject, R2 {
public int test_field = 5;
@@ -82,7 +85,7 @@ class R1 : MarshalByRefObject {
}
public long nonvirtual_Add (int a, int b) {
- Console.WriteLine ("nonvirtual_Add");
+ Console.WriteLine ("nonvirtual_Add " + a + " + " + b);
return a + b;
}
}
@@ -112,6 +115,8 @@ class Test {
if (!RemotingServices.IsTransparentProxy (o))
return 2;
+ Console.WriteLine ("XXXXXXXXXXXX: " + RemotingServices.GetRealProxy (o));
+
if (o.GetType () != myobj.GetType ())
return 3;
@@ -171,6 +176,9 @@ class Test {
RemoteDelegate2 d2 = new RemoteDelegate2 (o.nonvirtual_Add);
d2 (6, 7);
+ if (!(real_proxy.GetTransparentProxy () is R2))
+ return 14;
+
return 0;
}
}