* AsyncCalls.cs, BaseCalls.cs, CallSeq.cs, ContextHookAttribute.cs,
authorLluis Sanchez <lluis@novell.com>
Mon, 23 Feb 2004 10:49:08 +0000 (10:49 -0000)
committerLluis Sanchez <lluis@novell.com>
Mon, 23 Feb 2004 10:49:08 +0000 (10:49 -0000)
  ContextsTest.cs, CrossDomainCalls.cs, DelegateCalls.cs, HttpCalls.cs,
  ReflectionCalls.cs, ServerObject.cs, SyncCalls.cs, TcpCalls.cs:
  Shortened namespace name.

svn path=/trunk/mcs/; revision=23353

13 files changed:
mcs/class/System.Runtime.Remoting/Test/AsyncCalls.cs
mcs/class/System.Runtime.Remoting/Test/BaseCalls.cs
mcs/class/System.Runtime.Remoting/Test/CallSeq.cs
mcs/class/System.Runtime.Remoting/Test/ChangeLog
mcs/class/System.Runtime.Remoting/Test/ContextHookAttribute.cs
mcs/class/System.Runtime.Remoting/Test/ContextsTest.cs
mcs/class/System.Runtime.Remoting/Test/CrossDomainCalls.cs
mcs/class/System.Runtime.Remoting/Test/DelegateCalls.cs
mcs/class/System.Runtime.Remoting/Test/HttpCalls.cs
mcs/class/System.Runtime.Remoting/Test/ReflectionCalls.cs
mcs/class/System.Runtime.Remoting/Test/ServerObject.cs
mcs/class/System.Runtime.Remoting/Test/SyncCalls.cs
mcs/class/System.Runtime.Remoting/Test/TcpCalls.cs

index 593f926ccd54bbbf70161974f91bf55194df2582..ae357663756b494279a01023e285da66c8526312 100644 (file)
@@ -1,5 +1,5 @@
 //
-// MonoTests.System.Runtime.Remoting.AsyncCalls.cs
+// MonoTests.Remoting.AsyncCalls.cs
 //
 // Author: Lluis Sanchez Gual (lluis@ximian.com)
 //
@@ -13,7 +13,7 @@ using NUnit.Framework;
 using System.Text;
 using System.Runtime.InteropServices;
 
-namespace MonoTests.System.Runtime.Remoting
+namespace MonoTests.Remoting
 {
        public abstract class AsyncCallTest : BaseCallTest
        {
index 5a5ceeab3d7e965439af0de669ff536919c637a7..04952a65f51434ea21a7a877967216117488af50 100644 (file)
@@ -1,5 +1,5 @@
 //
-// MonoTests.System.Runtime.Remoting.BaseCalls.cs
+// MonoTests.Remoting.BaseCalls.cs
 //
 // Author: Lluis Sanchez Gual (lluis@ximian.com)
 //
@@ -11,6 +11,7 @@ using System.Net;
 using System.Text;
 using System.Threading;
 using System.Collections;
+using System.Globalization;
 using System.Runtime.Remoting;
 using System.Runtime.Remoting.Channels;
 using System.Runtime.Remoting.Messaging;
@@ -21,7 +22,7 @@ using System.Runtime.Remoting.Contexts;
 using System.Runtime.InteropServices;
 using NUnit.Framework;
 
-namespace MonoTests.System.Runtime.Remoting
+namespace MonoTests.Remoting
 {
        public abstract class BaseCallTest : Assertion
        {
@@ -33,7 +34,14 @@ namespace MonoTests.System.Runtime.Remoting
                [TestFixtureSetUp]
                public void Run()
                {
-                       remoteDomId = CreateServer ();
+                       try
+                       {
+                               remoteDomId = CreateServer ();
+                       }
+                       catch (Exception ex)
+                       {
+                               Console.WriteLine (ex);
+                       }
                }
 
                [TestFixtureTearDown]
@@ -49,7 +57,7 @@ namespace MonoTests.System.Runtime.Remoting
                        ChannelServices.RegisterChannel (chs);
 
                        AppDomain domain = AppDomain.CreateDomain ("testdomain");
-                       server = (CallsDomainServer) domain.CreateInstanceAndUnwrap(GetType().Assembly.FullName,"MonoTests.System.Runtime.Remoting.CallsDomainServer");
+                       server = (CallsDomainServer) domain.CreateInstanceAndUnwrap(GetType().Assembly.FullName,"MonoTests.Remoting.CallsDomainServer");
                        remoteUris = server.Start (cm);
                        return server.GetDomId ();
                }
@@ -482,7 +490,7 @@ namespace MonoTests.System.Runtime.Remoting
 
                public override string PrimitiveParamsInOut (ref int a1, out int a2, ref float b1, out float b2, ref char c1, out char c2, ref string d1, out string d2)
                {
-                       string res = "" + a1 + "-" + b1 + "-" + c1 + "-" + d1 + "@" + Thread.GetDomainID();
+                       string res = "" + a1 + "-" + b1.ToString(CultureInfo.InvariantCulture) + "-" + c1 + "-" + d1 + "@" + Thread.GetDomainID();
                        a2 = 12345678;
                        b2 = 53455.345f;
                        c2 = 'g';
index 78fe1243212d5f17a1330b2348b22f0474e73123..d1312eae1f3c3a5c4ec7ac194b7a8078d8f4743f 100644 (file)
@@ -1,5 +1,5 @@
 //\r
-// MonoTests.System.Runtime.Remoting.CallSeq.cs\r
+// MonoTests.Remoting.CallSeq.cs\r
 //\r
 // Author: Lluis Sanchez Gual (lluis@ximian.com)\r
 //\r
@@ -11,7 +11,7 @@ using System.Threading;
 using System.Collections;\r
 using NUnit.Framework;\r
 \r
-namespace MonoTests.System.Runtime.Remoting\r
+namespace MonoTests.Remoting\r
 {\r
        public class CallSeq\r
        {\r
index b72ddbeb387108fb9e5e0c91ecd7188173a17dc4..4b6a1e37a45bff094aae29042b2469b7a9f8e576 100644 (file)
@@ -1,3 +1,10 @@
+2004-02-23  Lluis Sanchez Gual <lluis@ximian.com>
+
+       * AsyncCalls.cs, BaseCalls.cs, CallSeq.cs, ContextHookAttribute.cs, 
+         ContextsTest.cs, CrossDomainCalls.cs, DelegateCalls.cs, HttpCalls.cs,
+         ReflectionCalls.cs, ServerObject.cs, SyncCalls.cs, TcpCalls.cs:
+         Shortened namespace name.
+
 2003-11-11  Lluis Sanchez Gual <lluis@ximian.com>
 
        * BaseCalls.cs: Little fix.
index df5f4dcd154ff901d8b269c8f08c1202e6f9b50d..5d01ef39c71ca6ad3bc34c515eb5f732289bbc72 100644 (file)
@@ -1,5 +1,5 @@
 //\r
-// MonoTests.System.Runtime.Remoting.ContextHookAttribute.cs\r
+// MonoTests.Remoting.ContextHookAttribute.cs\r
 //\r
 // Author: Lluis Sanchez Gual (lluis@ximian.com)\r
 //\r
@@ -14,7 +14,7 @@ using System.Runtime.Remoting.Proxies;
 using System.Runtime.Remoting;\r
 using System.Threading;\r
 \r
-namespace MonoTests.System.Runtime.Remoting\r
+namespace MonoTests.Remoting\r
 {\r
        [Serializable,AttributeUsage(AttributeTargets.Class)]\r
        public class ContextHookAttribute: Attribute, IContextAttribute, IContextProperty, IContributeObjectSink, IContributeServerContextSink, IContributeEnvoySink, IContributeClientContextSink\r
index 722d2cee1f3a709eb64e1506609210bc9b739a3e..bf82ab6180bbdbd3d007dceaa12ee3df23aeeadf 100644 (file)
@@ -1,5 +1,5 @@
 //\r
-// MonoTests.System.Runtime.Remoting.ContextsTest.cs\r
+// MonoTests.Remoting.ContextsTest.cs\r
 //\r
 // Author: Lluis Sanchez Gual (lluis@ximian.com)\r
 //\r
@@ -18,7 +18,7 @@ using System.Runtime.Remoting.Activation;
 using System.Runtime.Remoting.Contexts;\r
 using NUnit.Framework;\r
 \r
-namespace MonoTests.System.Runtime.Remoting\r
+namespace MonoTests.Remoting\r
 {\r
        [TestFixture]\r
        public class ContextsTest\r
@@ -81,7 +81,7 @@ namespace MonoTests.System.Runtime.Remoting
                public void TestRemoteContext ()\r
                {\r
                        AppDomain domain = AppDomain.CreateDomain ("test");\r
-                       DomainServer server = (DomainServer) domain.CreateInstanceAndUnwrap(GetType().Assembly.FullName,"MonoTests.System.Runtime.Remoting.DomainServer");\r
+                       DomainServer server = (DomainServer) domain.CreateInstanceAndUnwrap(GetType().Assembly.FullName,"MonoTests.Remoting.DomainServer");\r
                        try\r
                        {\r
                                CallSeq.Init("TestRemoteContext");\r
index 0194f91f35c11690fd725dae35ec09a3ebab78bc..5d2dda5d1bafe92a662007bc2df5191a3af5544e 100644 (file)
@@ -1,5 +1,5 @@
 //
-// MonoTests.System.Runtime.Remoting.CrossDomainCalls.cs
+// MonoTests.Remoting.CrossDomainCalls.cs
 //
 // Author: Lluis Sanchez Gual (lluis@ximian.com)
 //
@@ -13,7 +13,7 @@ using System.Runtime.Remoting.Channels;
 using System.Runtime.Remoting.Channels.Tcp;
 using NUnit.Framework;
 
-namespace MonoTests.System.Runtime.Remoting
+namespace MonoTests.Remoting
 {
        class CrossDomainServer: MarshalByRefObject
        {
@@ -46,7 +46,7 @@ namespace MonoTests.System.Runtime.Remoting
                protected override int CreateServer ()
                {
                        AppDomain domain = AppDomain.CreateDomain ("testdomain");
-                       server = (CrossDomainServer) domain.CreateInstanceAndUnwrap(GetType().Assembly.FullName,"MonoTests.System.Runtime.Remoting.CrossDomainServer");
+                       server = (CrossDomainServer) domain.CreateInstanceAndUnwrap(GetType().Assembly.FullName,"MonoTests.Remoting.CrossDomainServer");
                        return server.GetDomId ();
                }
                
@@ -74,7 +74,7 @@ namespace MonoTests.System.Runtime.Remoting
                protected override int CreateServer ()
                {
                        AppDomain domain = AppDomain.CreateDomain ("testdomain");
-                       server = (CrossDomainServer) domain.CreateInstanceAndUnwrap(GetType().Assembly.FullName,"MonoTests.System.Runtime.Remoting.CrossDomainServer");
+                       server = (CrossDomainServer) domain.CreateInstanceAndUnwrap(GetType().Assembly.FullName,"MonoTests.Remoting.CrossDomainServer");
                        return server.GetDomId ();
                }
                
@@ -102,7 +102,7 @@ namespace MonoTests.System.Runtime.Remoting
                protected override int CreateServer ()
                {
                        AppDomain domain = AppDomain.CreateDomain ("testdomain");
-                       server = (CrossDomainServer) domain.CreateInstanceAndUnwrap(GetType().Assembly.FullName,"MonoTests.System.Runtime.Remoting.CrossDomainServer");
+                       server = (CrossDomainServer) domain.CreateInstanceAndUnwrap(GetType().Assembly.FullName,"MonoTests.Remoting.CrossDomainServer");
                        return server.GetDomId ();
                }
                
@@ -130,7 +130,7 @@ namespace MonoTests.System.Runtime.Remoting
                protected override int CreateServer ()
                {
                        AppDomain domain = AppDomain.CreateDomain ("testdomain");
-                       server = (CrossDomainServer) domain.CreateInstanceAndUnwrap(GetType().Assembly.FullName,"MonoTests.System.Runtime.Remoting.CrossDomainServer");
+                       server = (CrossDomainServer) domain.CreateInstanceAndUnwrap(GetType().Assembly.FullName,"MonoTests.Remoting.CrossDomainServer");
                        return server.GetDomId ();
                }
                
index be6fd3440b7bf287527a276a9429df6d3a189e79..04547268d47ffa84a92959efd099cd705543ebd6 100644 (file)
@@ -1,5 +1,5 @@
 //
-// MonoTests.System.Runtime.Remoting.DelegateCalls.cs
+// MonoTests.Remoting.DelegateCalls.cs
 //
 // Author: Lluis Sanchez Gual (lluis@ximian.com)
 //
@@ -12,7 +12,7 @@ using NUnit.Framework;
 using System.Text;
 using System.Runtime.InteropServices;
 
-namespace MonoTests.System.Runtime.Remoting
+namespace MonoTests.Remoting
 {
        public abstract class DelegateCallTest : BaseCallTest
        {
index 6ba81691fd9ec88f0b674b71ebcfd22abb8e5d52..568cab4e4d2400f82a4cfce4e11a4925550dfb52 100644 (file)
@@ -1,5 +1,5 @@
 //
-// MonoTests.System.Runtime.Remoting.HttpCalls.cs
+// MonoTests.Remoting.HttpCalls.cs
 //
 // Author: Lluis Sanchez Gual (lluis@ximian.com)
 //
@@ -12,7 +12,7 @@ using System.Runtime.Remoting.Channels;
 using System.Runtime.Remoting.Channels.Http;
 using NUnit.Framework;
 
-namespace MonoTests.System.Runtime.Remoting
+namespace MonoTests.Remoting
 {
        [TestFixture]
        public class HttpSyncCallTest : SyncCallTest
index 21c0d4f3e7d356c5935ede5f36ba9f052499e042..3b1071850ab6a02a5458c1acc0f244bf98a1b532 100644 (file)
@@ -1,5 +1,5 @@
 //
-// MonoTests.System.Runtime.Remoting.ReflectionCalls.cs
+// MonoTests.Remoting.ReflectionCalls.cs
 //
 // Author: Lluis Sanchez Gual (lluis@ximian.com)
 //
@@ -13,7 +13,7 @@ using NUnit.Framework;
 using System.Text;
 using System.Runtime.InteropServices;
 
-namespace MonoTests.System.Runtime.Remoting
+namespace MonoTests.Remoting
 {
        public abstract class ReflectionCallTest : BaseCallTest
        {
index 031c1fbe7d1f5e4aa542cb5cfdf2d4e80f19a378..15f361bcf7e98c427df6b50bfccb0d9466e32af2 100644 (file)
@@ -1,5 +1,5 @@
 //\r
-// MonoTests.System.Runtime.Remoting.ServerObject.cs\r
+// MonoTests.Remoting.ServerObject.cs\r
 //\r
 // Author: Lluis Sanchez Gual (lluis@ximian.com)\r
 //\r
@@ -11,7 +11,7 @@ using System.Runtime.Remoting;
 using System.Runtime.Remoting.Lifetime;\r
 using System.Collections;\r
 \r
-namespace MonoTests.System.Runtime.Remoting\r
+namespace MonoTests.Remoting\r
 {\r
        // A list of ServerObject instances\r
 \r
index b1403044da50095ef1c091f7431303a515113dfc..66006d9fdf8f77e1deb01e84ce1b6f7e0edf98e9 100644 (file)
@@ -1,5 +1,5 @@
 //
-// MonoTests.System.Runtime.Remoting.SyncCalls.cs
+// MonoTests.Remoting.SyncCalls.cs
 //
 // Author: Lluis Sanchez Gual (lluis@ximian.com)
 //
@@ -12,7 +12,7 @@ using NUnit.Framework;
 using System.Text;
 using System.Runtime.InteropServices;
 
-namespace MonoTests.System.Runtime.Remoting
+namespace MonoTests.Remoting
 {
        public abstract class SyncCallTest : BaseCallTest
        {
index 6639d76f6be449b943edbbbbc68d171d3e06dff1..86c1b7878fbfd9a2c48971e6bf7db7cec6c5ce0d 100644 (file)
@@ -1,5 +1,5 @@
 //
-// MonoTests.System.Runtime.Remoting.TcpCalls.cs
+// MonoTests.Remoting.TcpCalls.cs
 //
 // Author: Lluis Sanchez Gual (lluis@ximian.com)
 //
@@ -12,7 +12,7 @@ using System.Runtime.Remoting.Channels;
 using System.Runtime.Remoting.Channels.Tcp;
 using NUnit.Framework;
 
-namespace MonoTests.System.Runtime.Remoting
+namespace MonoTests.Remoting
 {
        [TestFixture]
        public class TcpSyncCallTest : SyncCallTest
@@ -60,7 +60,7 @@ namespace MonoTests.System.Runtime.Remoting
 
                public override IChannelReceiver CreateServerChannel ()
                {
-                       return new TcpChannel (1122);
+                       return new TcpChannel (9738);
                }
        }
 }