summaryrefslogtreecommitdiff
path: root/csharp/test
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2016-05-11 16:51:13 +0200
committerJose <jose@zeroc.com>2016-05-11 16:51:13 +0200
commit20ead35bcd15c258b00da6b1a16d26107f8dea8b (patch)
tree0aa99a82b9d56383c76c372fc1050dfd5493b4e9 /csharp/test
parentFixed make install issue (diff)
downloadice-20ead35bcd15c258b00da6b1a16d26107f8dea8b.tar.bz2
ice-20ead35bcd15c258b00da6b1a16d26107f8dea8b.tar.xz
ice-20ead35bcd15c258b00da6b1a16d26107f8dea8b.zip
CSharp mapping cleanup
- Remove code support for old ussuported frameworks (SILVERLIGHT, COMPACT, MONO) - Remove code support for deprecated collection mappings clr:collection
Diffstat (limited to 'csharp/test')
-rw-r--r--csharp/test/Glacier2/router/Client.cs13
-rw-r--r--csharp/test/Glacier2/router/Server.cs9
-rw-r--r--csharp/test/Glacier2/sessionHelper/CallbackI.cs5
-rw-r--r--csharp/test/Glacier2/sessionHelper/Client.cs62
-rw-r--r--csharp/test/Glacier2/sessionHelper/Server.cs1
-rw-r--r--csharp/test/Ice/acm/AllTests.cs26
-rw-r--r--csharp/test/Ice/adapterDeactivation/AllTests.cs23
-rw-r--r--csharp/test/Ice/adapterDeactivation/Collocated.cs2
-rw-r--r--csharp/test/Ice/adapterDeactivation/ServantLocatorI.cs1
-rw-r--r--csharp/test/Ice/adapterDeactivation/Server.cs1
-rw-r--r--csharp/test/Ice/admin/AllTests.cs10
-rw-r--r--csharp/test/Ice/admin/Client.cs2
-rw-r--r--csharp/test/Ice/admin/Server.cs1
-rw-r--r--csharp/test/Ice/ami/AllTests.cs30
-rw-r--r--csharp/test/Ice/ami/Client.cs8
-rw-r--r--csharp/test/Ice/ami/Collocated.cs8
-rw-r--r--csharp/test/Ice/ami/Server.cs7
-rw-r--r--csharp/test/Ice/ami/TestI.cs1
-rw-r--r--csharp/test/Ice/application/Client.cs1
-rw-r--r--csharp/test/Ice/background/Acceptor.cs4
-rw-r--r--csharp/test/Ice/background/BackgroundControllerI.cs5
-rw-r--r--csharp/test/Ice/background/Client.cs3
-rw-r--r--csharp/test/Ice/background/Connector.cs3
-rw-r--r--csharp/test/Ice/background/Server.cs1
-rw-r--r--csharp/test/Ice/binding/AllTests.cs24
-rw-r--r--csharp/test/Ice/binding/Client.cs1
-rw-r--r--csharp/test/Ice/binding/RemoteObjectAdapterI.cs2
-rw-r--r--csharp/test/Ice/binding/Server.cs5
-rw-r--r--csharp/test/Ice/checksum/server/Server.cs1
-rw-r--r--csharp/test/Ice/defaultServant/AllTests.cs2
-rw-r--r--csharp/test/Ice/defaultServant/Client.cs3
-rw-r--r--csharp/test/Ice/defaultServant/MyObjectI.cs1
-rw-r--r--csharp/test/Ice/defaultValue/AllTests.cs19
-rw-r--r--csharp/test/Ice/defaultValue/Client.cs1
-rw-r--r--csharp/test/Ice/dictMapping/AllTests.cs26
-rw-r--r--csharp/test/Ice/dictMapping/Collocated.cs1
-rw-r--r--csharp/test/Ice/dictMapping/MyClassAMDI.cs80
-rw-r--r--csharp/test/Ice/dictMapping/MyClassI.cs102
-rw-r--r--csharp/test/Ice/dictMapping/Server.cs3
-rw-r--r--csharp/test/Ice/dictMapping/Test.ice44
-rw-r--r--csharp/test/Ice/dictMapping/TestAMD.ice44
-rw-r--r--csharp/test/Ice/dictMapping/Twoways.cs290
-rw-r--r--csharp/test/Ice/dictMapping/TwowaysAMI.cs408
-rw-r--r--csharp/test/Ice/dispatcher/AllTests.cs29
-rw-r--r--csharp/test/Ice/dispatcher/Client.cs5
-rw-r--r--csharp/test/Ice/dispatcher/Collocated.cs7
-rw-r--r--csharp/test/Ice/dispatcher/Dispatcher.cs20
-rw-r--r--csharp/test/Ice/dispatcher/Server.cs1
-rw-r--r--csharp/test/Ice/echo/BlobjectI.cs4
-rw-r--r--csharp/test/Ice/echo/Server.cs3
-rw-r--r--csharp/test/Ice/enums/AllTests.cs18
-rw-r--r--csharp/test/Ice/enums/Client.cs4
-rw-r--r--csharp/test/Ice/enums/Server.cs8
-rw-r--r--csharp/test/Ice/exceptions/AllTests.cs42
-rw-r--r--csharp/test/Ice/exceptions/Client.cs14
-rw-r--r--csharp/test/Ice/exceptions/Collocated.cs15
-rw-r--r--csharp/test/Ice/exceptions/Server.cs1
-rw-r--r--csharp/test/Ice/exceptions/ThrowerAMDI.cs7
-rw-r--r--csharp/test/Ice/exceptions/ThrowerI.cs2
-rw-r--r--csharp/test/Ice/facets/AllTests.cs26
-rw-r--r--csharp/test/Ice/facets/Client.cs7
-rw-r--r--csharp/test/Ice/facets/Collocated.cs1
-rw-r--r--csharp/test/Ice/facets/Server.cs1
-rw-r--r--csharp/test/Ice/faultTolerance/AllTests.cs38
-rw-r--r--csharp/test/Ice/faultTolerance/Client.cs17
-rw-r--r--csharp/test/Ice/faultTolerance/Server.cs21
-rw-r--r--csharp/test/Ice/faultTolerance/TestI.cs4
-rw-r--r--csharp/test/Ice/hash/Client.cs31
-rw-r--r--csharp/test/Ice/hold/AllTests.cs17
-rw-r--r--csharp/test/Ice/hold/Client.cs8
-rw-r--r--csharp/test/Ice/hold/HoldI.cs2
-rw-r--r--csharp/test/Ice/hold/Server.cs7
-rw-r--r--csharp/test/Ice/hold/Timer.cs20
-rw-r--r--csharp/test/Ice/info/AllTests.cs52
-rw-r--r--csharp/test/Ice/info/Client.cs7
-rw-r--r--csharp/test/Ice/info/Server.cs3
-rw-r--r--csharp/test/Ice/inheritance/AllTests.cs26
-rw-r--r--csharp/test/Ice/inheritance/Client.cs15
-rw-r--r--csharp/test/Ice/inheritance/Server.cs7
-rw-r--r--csharp/test/Ice/interceptor/AMDInterceptorI.cs8
-rw-r--r--csharp/test/Ice/interceptor/Client.cs9
-rw-r--r--csharp/test/Ice/interceptor/InterceptorI.cs2
-rw-r--r--csharp/test/Ice/interceptor/MyObjectI.cs1
-rw-r--r--csharp/test/Ice/invoke/AllTests.cs30
-rw-r--r--csharp/test/Ice/invoke/Client.cs10
-rw-r--r--csharp/test/Ice/invoke/Server.cs3
-rw-r--r--csharp/test/Ice/location/AllTests.cs22
-rw-r--r--csharp/test/Ice/location/Client.cs7
-rw-r--r--csharp/test/Ice/location/Server.cs7
-rw-r--r--csharp/test/Ice/metrics/AllTests.cs40
-rw-r--r--csharp/test/Ice/metrics/Client.cs14
-rw-r--r--csharp/test/Ice/metrics/Collocated.cs13
-rw-r--r--csharp/test/Ice/metrics/InstrumentationI.cs2
-rw-r--r--csharp/test/Ice/metrics/MetricsAMDI.cs1
-rw-r--r--csharp/test/Ice/metrics/Server.cs6
-rw-r--r--csharp/test/Ice/networkProxy/AllTests.cs20
-rw-r--r--csharp/test/Ice/networkProxy/Client.cs3
-rw-r--r--csharp/test/Ice/networkProxy/Server.cs3
-rw-r--r--csharp/test/Ice/objects/AllTests.cs21
-rw-r--r--csharp/test/Ice/objects/Client.cs15
-rw-r--r--csharp/test/Ice/objects/Collocated.cs16
-rw-r--r--csharp/test/Ice/objects/Server.cs14
-rw-r--r--csharp/test/Ice/operations/AllTests.cs30
-rw-r--r--csharp/test/Ice/operations/BatchOneways.cs2
-rw-r--r--csharp/test/Ice/operations/BatchOnewaysAMI.cs2
-rw-r--r--csharp/test/Ice/operations/Client.cs3
-rw-r--r--csharp/test/Ice/operations/Collocated.cs5
-rw-r--r--csharp/test/Ice/operations/MyDerivedClassAMDI.cs3
-rw-r--r--csharp/test/Ice/operations/MyDerivedClassAMDTieI.cs2
-rw-r--r--csharp/test/Ice/operations/OnewaysAMI.cs15
-rw-r--r--csharp/test/Ice/operations/Server.cs3
-rw-r--r--csharp/test/Ice/operations/Twoways.cs4
-rw-r--r--csharp/test/Ice/operations/TwowaysAMI.cs6
-rw-r--r--csharp/test/Ice/optional/AllTests.cs44
-rw-r--r--csharp/test/Ice/optional/Client.cs9
-rw-r--r--csharp/test/Ice/optional/SerializableClass.cs4
-rw-r--r--csharp/test/Ice/optional/Server.cs10
-rw-r--r--csharp/test/Ice/optional/ServerAMD.cs11
-rw-r--r--csharp/test/Ice/optional/TestAMDI.cs13
-rw-r--r--csharp/test/Ice/optional/TestI.cs13
-rw-r--r--csharp/test/Ice/plugin/BasePlugin.cs2
-rw-r--r--csharp/test/Ice/plugin/BasePluginFail.cs2
-rw-r--r--csharp/test/Ice/plugin/Client.cs4
-rw-r--r--csharp/test/Ice/properties/Client.cs15
-rw-r--r--csharp/test/Ice/proxy/AllTests.cs34
-rw-r--r--csharp/test/Ice/proxy/Client.cs5
-rw-r--r--csharp/test/Ice/proxy/Collocated.cs3
-rw-r--r--csharp/test/Ice/proxy/MyDerivedClassAMDI.cs1
-rw-r--r--csharp/test/Ice/proxy/MyDerivedClassI.cs1
-rw-r--r--csharp/test/Ice/proxy/Server.cs3
-rw-r--r--csharp/test/Ice/retry/AllTests.cs53
-rw-r--r--csharp/test/Ice/retry/Client.cs3
-rw-r--r--csharp/test/Ice/retry/Collocated.cs3
-rw-r--r--csharp/test/Ice/retry/RetryI.cs2
-rw-r--r--csharp/test/Ice/retry/Server.cs3
-rw-r--r--csharp/test/Ice/retry/SystemFailure.cs3
-rw-r--r--csharp/test/Ice/seqMapping/AllTests.cs26
-rw-r--r--csharp/test/Ice/seqMapping/Client.cs11
-rw-r--r--csharp/test/Ice/seqMapping/Collocated.cs11
-rw-r--r--csharp/test/Ice/seqMapping/Custom.cs3
-rw-r--r--csharp/test/Ice/seqMapping/MyClassAMDI.cs80
-rw-r--r--csharp/test/Ice/seqMapping/MyClassI.cs97
-rw-r--r--csharp/test/Ice/seqMapping/Serializable.cs3
-rw-r--r--csharp/test/Ice/seqMapping/Server.cs11
-rw-r--r--csharp/test/Ice/seqMapping/ServerAMD.cs11
-rw-r--r--csharp/test/Ice/seqMapping/Test.ice40
-rw-r--r--csharp/test/Ice/seqMapping/TestAMD.ice32
-rw-r--r--csharp/test/Ice/seqMapping/Twoways.cs263
-rw-r--r--csharp/test/Ice/seqMapping/TwowaysAMI.cs366
-rw-r--r--csharp/test/Ice/serialize/AllTests.cs26
-rw-r--r--csharp/test/Ice/serialize/Client.cs13
-rw-r--r--csharp/test/Ice/serialize/Test.ice6
-rw-r--r--csharp/test/Ice/servantLocator/AllTests.cs21
-rw-r--r--csharp/test/Ice/servantLocator/Client.cs10
-rw-r--r--csharp/test/Ice/servantLocator/Collocated.cs10
-rw-r--r--csharp/test/Ice/servantLocator/ServantLocatorI.cs2
-rw-r--r--csharp/test/Ice/servantLocator/Server.cs1
-rw-r--r--csharp/test/Ice/slicing/exceptions/AllTests.cs30
-rw-r--r--csharp/test/Ice/slicing/exceptions/Client.cs16
-rw-r--r--csharp/test/Ice/slicing/exceptions/Server.cs16
-rw-r--r--csharp/test/Ice/slicing/exceptions/ServerAMD.cs16
-rw-r--r--csharp/test/Ice/slicing/objects/AllTests.cs55
-rw-r--r--csharp/test/Ice/slicing/objects/Client.cs16
-rw-r--r--csharp/test/Ice/slicing/objects/Server.cs16
-rw-r--r--csharp/test/Ice/slicing/objects/ServerAMD.cs16
-rw-r--r--csharp/test/Ice/slicing/objects/Test.ice2
-rw-r--r--csharp/test/Ice/slicing/objects/TestAMD.ice2
-rw-r--r--csharp/test/Ice/stream/AllTests.cs153
-rw-r--r--csharp/test/Ice/stream/Client.cs13
-rw-r--r--csharp/test/Ice/stream/Test.ice27
-rw-r--r--csharp/test/Ice/threadPoolPriority/Client.cs4
-rw-r--r--csharp/test/Ice/threadPoolPriority/Server.cs3
-rw-r--r--csharp/test/Ice/timeout/AllTests.cs42
-rw-r--r--csharp/test/Ice/timeout/Client.cs3
-rw-r--r--csharp/test/Ice/timeout/Server.cs3
-rw-r--r--csharp/test/Ice/timeout/TimeoutI.cs1
-rw-r--r--csharp/test/Ice/udp/Client.cs11
-rw-r--r--csharp/test/Ice/udp/Server.cs11
-rw-r--r--csharp/test/IceBox/admin/AllTests.cs1
-rw-r--r--csharp/test/IceBox/admin/Client.cs5
-rw-r--r--csharp/test/IceBox/configuration/Client.cs8
-rw-r--r--csharp/test/IceDiscovery/simple/AllTests.cs1
-rw-r--r--csharp/test/IceDiscovery/simple/Client.cs11
-rw-r--r--csharp/test/IceDiscovery/simple/Server.cs11
-rw-r--r--csharp/test/IceGrid/simple/AllTests.cs7
-rw-r--r--csharp/test/IceGrid/simple/Client.cs8
-rw-r--r--csharp/test/IceGrid/simple/Server.cs1
-rw-r--r--csharp/test/IceGrid/simple/TestI.cs5
-rw-r--r--csharp/test/IceSSL/configuration/Client.cs3
-rw-r--r--csharp/test/IceSSL/configuration/Server.cs3
-rw-r--r--csharp/test/IceUtil/inputUtil/Client.cs13
-rw-r--r--csharp/test/Slice/keyword/Client.cs4
-rw-r--r--csharp/test/Slice/keyword/Key.ice13
-rw-r--r--csharp/test/Slice/structure/Client.cs15
-rw-r--r--csharp/test/Slice/structure/Test.ice2
-rw-r--r--csharp/test/TestCommon/TestApp.cs124
196 files changed, 328 insertions, 3763 deletions
diff --git a/csharp/test/Glacier2/router/Client.cs b/csharp/test/Glacier2/router/Client.cs
index 6f01f768014..064fcdccfb8 100644
--- a/csharp/test/Glacier2/router/Client.cs
+++ b/csharp/test/Glacier2/router/Client.cs
@@ -7,11 +7,9 @@
//
// **********************************************************************
-using Glacier2;
using Test;
using System;
using System.Collections.Generic;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -27,7 +25,6 @@ public class Client
public override int run(string[] args)
{
Ice.ObjectPrx routerBase;
-
{
Console.Out.Write("testing stringToProxy for router... ");
Console.Out.Flush();
@@ -36,7 +33,6 @@ public class Client
}
Glacier2.RouterPrx router;
-
{
Console.Out.Write("testing checked cast for router... ");
Console.Out.Flush();
@@ -451,15 +447,6 @@ public class Client
initData.properties = Ice.Util.createProperties(ref args);
initData.properties.setProperty("Ice.Warn.Connections", "0");
-
-#if COMPACT
- //
- // When using Ice for .NET Compact Framework, we need to specify
- // the assembly so that Ice can locate classes and exceptions.
- //
- initData.properties.setProperty("Ice.FactoryAssemblies", "client");
-#endif
-
App app = new App();
return app.main(args, initData);
}
diff --git a/csharp/test/Glacier2/router/Server.cs b/csharp/test/Glacier2/router/Server.cs
index b4cf4ba283f..78312e1fbcf 100644
--- a/csharp/test/Glacier2/router/Server.cs
+++ b/csharp/test/Glacier2/router/Server.cs
@@ -43,15 +43,6 @@ public class Server
{
Ice.InitializationData initData = new Ice.InitializationData();
initData.properties = Ice.Util.createProperties(ref args);
-
-#if COMPACT
- //
- // When using Ice for .NET Compact Framework, we need to specify
- // the assembly so that Ice can locate classes and exceptions.
- //
- initData.properties.setProperty("Ice.FactoryAssemblies", "server");
-#endif
-
App app = new App();
return app.main(args, initData);
}
diff --git a/csharp/test/Glacier2/sessionHelper/CallbackI.cs b/csharp/test/Glacier2/sessionHelper/CallbackI.cs
index 677611398f8..4ce26779ce0 100644
--- a/csharp/test/Glacier2/sessionHelper/CallbackI.cs
+++ b/csharp/test/Glacier2/sessionHelper/CallbackI.cs
@@ -8,14 +8,9 @@
// **********************************************************************
using Test;
-using System.Diagnostics;
public sealed class CallbackI : Test.CallbackDisp_
{
- public CallbackI()
- {
- }
-
public override void
initiateCallback(CallbackReceiverPrx proxy, Ice.Current current)
{
diff --git a/csharp/test/Glacier2/sessionHelper/Client.cs b/csharp/test/Glacier2/sessionHelper/Client.cs
index d793e179abd..9d00931328c 100644
--- a/csharp/test/Glacier2/sessionHelper/Client.cs
+++ b/csharp/test/Glacier2/sessionHelper/Client.cs
@@ -7,11 +7,8 @@
//
// **********************************************************************
-using Glacier2;
using Test;
using System;
-using System.Collections.Generic;
-using System.Diagnostics;
using System.Reflection;
using System.Threading;
@@ -32,11 +29,7 @@ public class Client
_initData = new Ice.InitializationData();
_initData.properties = Ice.Util.createProperties(ref args);
_initData.properties.setProperty("Ice.Default.Router", "Glacier2/router:default -p 12347");
-#if COMPACT
- _initData.dispatcher = delegate(Ice.VoidAction action, Ice.Connection connection)
-#else
- _initData.dispatcher = delegate(System.Action action, Ice.Connection connection)
-#endif
+ _initData.dispatcher = delegate(Action action, Ice.Connection connection)
{
action();
};
@@ -57,7 +50,7 @@ public class Client
}
public void
- connectFailed(Glacier2.SessionHelper session, System.Exception exception)
+ connectFailed(Glacier2.SessionHelper session, Exception exception)
{
try
{
@@ -71,7 +64,7 @@ public class Client
wakeUp();
}
}
- catch(System.Exception)
+ catch(Exception)
{
test(false);
}
@@ -107,7 +100,7 @@ public class Client
}
public void
- connectFailed(Glacier2.SessionHelper session, System.Exception ex)
+ connectFailed(Glacier2.SessionHelper session, Exception ex)
{
Console.Out.WriteLine(ex.ToString());
test(false);
@@ -135,7 +128,7 @@ public class Client
}
public void
- connectFailed(Glacier2.SessionHelper session, System.Exception exception)
+ connectFailed(Glacier2.SessionHelper session, Exception exception)
{
try
{
@@ -149,7 +142,7 @@ public class Client
wakeUp();
}
}
- catch(System.Exception)
+ catch(Exception)
{
test(false);
}
@@ -177,7 +170,7 @@ public class Client
}
public void
- connectFailed(Glacier2.SessionHelper session, System.Exception exception)
+ connectFailed(Glacier2.SessionHelper session, Exception exception)
{
try
{
@@ -191,7 +184,7 @@ public class Client
wakeUp();
}
}
- catch(System.Exception)
+ catch(Exception)
{
test(false);
}
@@ -227,19 +220,14 @@ public class Client
_session = _factory.connect("userid", "xxx");
while(true)
{
-#if COMPACT
- System.Threading.Monitor.Wait(this);
- break;
-#else
try
{
- System.Threading.Monitor.Wait(this);
+ Monitor.Wait(this);
break;
}
catch(ThreadInterruptedException)
{
}
-#endif
}
}
@@ -254,24 +242,19 @@ public class Client
_factory.setProtocol(protocol);
_session = _factory.connect("userid", "abc123");
- System.Threading.Thread.Sleep(100);
+ Thread.Sleep(100);
_session.destroy();
while(true)
{
-#if COMPACT
- System.Threading.Monitor.Wait(this);
- break;
-#else
try
{
- System.Threading.Monitor.Wait(this);
+ Monitor.Wait(this);
break;
}
catch(ThreadInterruptedException)
{
}
-#endif
}
}
@@ -286,19 +269,14 @@ public class Client
_session = _factory.connect("userid", "abc123");
while(true)
{
-#if COMPACT
- System.Threading.Monitor.Wait(this);
- break;
-#else
try
{
- System.Threading.Monitor.Wait(this);
+ Monitor.Wait(this);
break;
}
catch(ThreadInterruptedException)
{
}
-#endif
}
Console.Out.Write("testing SessionHelper isConnected after connect... ");
@@ -354,19 +332,14 @@ public class Client
_session.destroy();
while(true)
{
-#if COMPACT
- System.Threading.Monitor.Wait(this);
- break;
-#else
try
{
- System.Threading.Monitor.Wait(this);
+ Monitor.Wait(this);
break;
}
catch(ThreadInterruptedException)
{
}
-#endif
}
Console.Out.Write("testing SessionHelper isConnected after destroy... ");
@@ -457,19 +430,14 @@ public class Client
_session = _factory.connect("userid", "abc123");
while(true)
{
-#if COMPACT
- System.Threading.Monitor.Wait(this);
- break;
-#else
try
{
- System.Threading.Monitor.Wait(this);
+ Monitor.Wait(this);
break;
}
catch(ThreadInterruptedException)
{
}
-#endif
}
Console.Out.Write("testing SessionHelper isConnect after connect failure... ");
@@ -502,7 +470,7 @@ public class Client
public static void
wakeUp()
{
- System.Threading.Monitor.Pulse(me);
+ Monitor.Pulse(me);
}
private static void
diff --git a/csharp/test/Glacier2/sessionHelper/Server.cs b/csharp/test/Glacier2/sessionHelper/Server.cs
index c1020ae84b8..c35bd550b28 100644
--- a/csharp/test/Glacier2/sessionHelper/Server.cs
+++ b/csharp/test/Glacier2/sessionHelper/Server.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
diff --git a/csharp/test/Ice/acm/AllTests.cs b/csharp/test/Ice/acm/AllTests.cs
index 307a211ebe8..4991e562454 100644
--- a/csharp/test/Ice/acm/AllTests.cs
+++ b/csharp/test/Ice/acm/AllTests.cs
@@ -8,22 +8,10 @@
// **********************************************************************
using System;
-using System.Collections;
using System.Collections.Generic;
-using System.Diagnostics;
using System.Threading;
using Test;
-#if SILVERLIGHT
-using System.Net;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Documents;
-using System.Windows.Ink;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Animation;
-using System.Windows.Shapes;
-#endif
+
class LoggerI : Ice.Logger
{
@@ -527,13 +515,7 @@ public class AllTests : TestCommon.TestApp
}
};
-
-#if SILVERLIGHT
- override
- public void run(Ice.Communicator communicator)
-#else
public static void allTests(Ice.Communicator communicator)
-#endif
{
string @ref = "communicator:default -p 12010";
RemoteCommunicatorPrx com = RemoteCommunicatorPrxHelper.uncheckedCast(communicator.stringToProxy(@ref));
@@ -571,9 +553,9 @@ public class AllTests : TestCommon.TestApp
test.destroy();
}
- System.Console.Out.Write("shutting down... ");
- System.Console.Out.Flush();
+ Console.Out.Write("shutting down... ");
+ Console.Out.Flush();
com.shutdown();
- System.Console.WriteLine("ok");
+ Console.WriteLine("ok");
}
}
diff --git a/csharp/test/Ice/adapterDeactivation/AllTests.cs b/csharp/test/Ice/adapterDeactivation/AllTests.cs
index 0f5dd56dfe2..1236e202fd8 100644
--- a/csharp/test/Ice/adapterDeactivation/AllTests.cs
+++ b/csharp/test/Ice/adapterDeactivation/AllTests.cs
@@ -10,27 +10,9 @@
using System;
using Test;
-#if SILVERLIGHT
-using System.Net;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Documents;
-using System.Windows.Ink;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Animation;
-using System.Windows.Shapes;
-#endif
-
public class AllTests : TestCommon.TestApp
{
-
-#if SILVERLIGHT
- override
- public void run(Ice.Communicator communicator)
-#else
public static TestIntfPrx allTests(Ice.Communicator communicator)
-#endif
{
Write("testing stringToProxy... ");
Flush();
@@ -46,7 +28,6 @@ public class AllTests : TestCommon.TestApp
test(obj.Equals(@base));
WriteLine("ok");
-#if !SILVERLIGHT
{
Write("creating/destroying/recreating object adapter... ");
Flush();
@@ -69,7 +50,7 @@ public class AllTests : TestCommon.TestApp
adapter.destroy();
Console.Out.WriteLine("ok");
}
-#endif
+
Write("creating/activating/deactivating object adapter in one operation... ");
Flush();
obj.transient();
@@ -107,8 +88,6 @@ public class AllTests : TestCommon.TestApp
WriteLine("ok");
}
-#if !SILVERLIGHT
return obj;
-#endif
}
}
diff --git a/csharp/test/Ice/adapterDeactivation/Collocated.cs b/csharp/test/Ice/adapterDeactivation/Collocated.cs
index 8dcdab50b8c..30a4fa2c598 100644
--- a/csharp/test/Ice/adapterDeactivation/Collocated.cs
+++ b/csharp/test/Ice/adapterDeactivation/Collocated.cs
@@ -7,9 +7,7 @@
//
// **********************************************************************
-using Test;
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
diff --git a/csharp/test/Ice/adapterDeactivation/ServantLocatorI.cs b/csharp/test/Ice/adapterDeactivation/ServantLocatorI.cs
index e64c45bc3cc..b4bc9cb27b9 100644
--- a/csharp/test/Ice/adapterDeactivation/ServantLocatorI.cs
+++ b/csharp/test/Ice/adapterDeactivation/ServantLocatorI.cs
@@ -7,7 +7,6 @@
//
// **********************************************************************
-using System;
using Test;
public sealed class ServantLocatorI : Ice.ServantLocator
diff --git a/csharp/test/Ice/adapterDeactivation/Server.cs b/csharp/test/Ice/adapterDeactivation/Server.cs
index 5dfff289960..a7cc8b99fc9 100644
--- a/csharp/test/Ice/adapterDeactivation/Server.cs
+++ b/csharp/test/Ice/adapterDeactivation/Server.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
diff --git a/csharp/test/Ice/admin/AllTests.cs b/csharp/test/Ice/admin/AllTests.cs
index d21191c2f93..6e1efb732eb 100644
--- a/csharp/test/Ice/admin/AllTests.cs
+++ b/csharp/test/Ice/admin/AllTests.cs
@@ -9,14 +9,9 @@
using System;
using System.Collections.Generic;
-using System.Diagnostics;
using System.Linq;
using System.Threading;
-#if SILVERLIGHT
-using System.Windows.Controls;
-#endif
-
using Test;
public class AllTests : TestCommon.TestApp
@@ -97,12 +92,7 @@ public class AllTests : TestCommon.TestApp
}
}
-#if SILVERLIGHT
- override
- public void run(Ice.Communicator communicator)
-#else
public static void allTests(Ice.Communicator communicator)
-#endif
{
Write("testing communicator operations... ");
Flush();
diff --git a/csharp/test/Ice/admin/Client.cs b/csharp/test/Ice/admin/Client.cs
index ef157470e0a..0c8c690e755 100644
--- a/csharp/test/Ice/admin/Client.cs
+++ b/csharp/test/Ice/admin/Client.cs
@@ -30,9 +30,7 @@ public class Client
int status = 0;
Ice.Communicator communicator = null;
-#if !COMPACT && !UNITY
Debug.Listeners.Add(new ConsoleTraceListener());
-#endif
try
{
diff --git a/csharp/test/Ice/admin/Server.cs b/csharp/test/Ice/admin/Server.cs
index b5f9d08892c..43680df866e 100644
--- a/csharp/test/Ice/admin/Server.cs
+++ b/csharp/test/Ice/admin/Server.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
diff --git a/csharp/test/Ice/ami/AllTests.cs b/csharp/test/Ice/ami/AllTests.cs
index 7bb88d55cfd..ea53fe5db98 100644
--- a/csharp/test/Ice/ami/AllTests.cs
+++ b/csharp/test/Ice/ami/AllTests.cs
@@ -8,24 +8,11 @@
// **********************************************************************
using System;
-using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading;
using Test;
-#if SILVERLIGHT
-using System.Net;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Documents;
-using System.Windows.Ink;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Animation;
-using System.Windows.Shapes;
-#endif
-
public class AllTests : TestCommon.TestApp
{
private class Cookie
@@ -649,25 +636,8 @@ public class AllTests : TestCommon.TestApp
ThrowType _t;
}
-#if SILVERLIGHT
- public override Ice.InitializationData initData()
- {
- Ice.InitializationData id = new Ice.InitializationData();
- id.properties = Ice.Util.createProperties();
- id.properties.setProperty("Ice.Warn.AMICallback", "0");
- id.properties.setProperty("Ice.FactoryAssemblies", "ami,version=1.0.0.0");
- return id;
- }
-
- override
- public void run(Ice.Communicator communicator)
-#else
public static void allTests(Ice.Communicator communicator, bool collocated)
-#endif
{
-#if SILVERLIGHT
- bool collocated = false;
-#endif
string sref = "test:default -p 12010";
Ice.ObjectPrx obj = communicator.stringToProxy(sref);
test(obj != null);
diff --git a/csharp/test/Ice/ami/Client.cs b/csharp/test/Ice/ami/Client.cs
index 246f5b6eb05..6a6e407ea27 100644
--- a/csharp/test/Ice/ami/Client.cs
+++ b/csharp/test/Ice/ami/Client.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -35,13 +34,6 @@ public class Client
Ice.InitializationData initData = new Ice.InitializationData();
initData.properties = Ice.Util.createProperties(ref args);
initData.properties.setProperty("Ice.Warn.AMICallback", "0");
-#if COMPACT
- //
- // When using Ice for .NET Compact Framework, we need to specify
- // the assembly so that Ice can locate classes and exceptions.
- //
- initData.properties.setProperty("Ice.FactoryAssemblies", "client");
-#endif
//
// Limit the send buffer size, this test relies on the socket
// send() blocking after sending a given amount of data.
diff --git a/csharp/test/Ice/ami/Collocated.cs b/csharp/test/Ice/ami/Collocated.cs
index f06511fa0a0..580ed4c1c09 100644
--- a/csharp/test/Ice/ami/Collocated.cs
+++ b/csharp/test/Ice/ami/Collocated.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -47,13 +46,6 @@ public class Collocated
Ice.InitializationData initData = new Ice.InitializationData();
initData.properties = Ice.Util.createProperties(ref args);
initData.properties.setProperty("Ice.Warn.AMICallback", "0");
-#if COMPACT
- //
- // When using Ice for .NET Compact Framework, we need to specify
- // the assembly so that Ice can locate classes and exceptions.
- //
- initData.properties.setProperty("Ice.FactoryAssemblies", "collocated");
-#endif
communicator = Ice.Util.initialize(ref args, initData);
status = run(args, communicator);
}
diff --git a/csharp/test/Ice/ami/Server.cs b/csharp/test/Ice/ami/Server.cs
index bc5fffdd700..7c29d688946 100644
--- a/csharp/test/Ice/ami/Server.cs
+++ b/csharp/test/Ice/ami/Server.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -55,9 +54,9 @@ public class Server
communicator = Ice.Util.initialize(ref args, initData);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
@@ -69,7 +68,7 @@ public class Server
}
catch(Ice.LocalException ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
}
diff --git a/csharp/test/Ice/ami/TestI.cs b/csharp/test/Ice/ami/TestI.cs
index 01f368d4887..ae87613fbe8 100644
--- a/csharp/test/Ice/ami/TestI.cs
+++ b/csharp/test/Ice/ami/TestI.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using Test;
-using System.Threading;
public class TestI : TestIntfDisp_
{
diff --git a/csharp/test/Ice/application/Client.cs b/csharp/test/Ice/application/Client.cs
index e24bd08bb33..d6bc0d7f869 100644
--- a/csharp/test/Ice/application/Client.cs
+++ b/csharp/test/Ice/application/Client.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
diff --git a/csharp/test/Ice/background/Acceptor.cs b/csharp/test/Ice/background/Acceptor.cs
index b8a822ba85a..1114ab4f3b8 100644
--- a/csharp/test/Ice/background/Acceptor.cs
+++ b/csharp/test/Ice/background/Acceptor.cs
@@ -7,10 +7,6 @@
//
// **********************************************************************
-using System;
-using System.Diagnostics;
-using System.Net.Sockets;
-
internal class Acceptor : IceInternal.Acceptor
{
public void close()
diff --git a/csharp/test/Ice/background/BackgroundControllerI.cs b/csharp/test/Ice/background/BackgroundControllerI.cs
index e856cd59141..e5f205fe289 100644
--- a/csharp/test/Ice/background/BackgroundControllerI.cs
+++ b/csharp/test/Ice/background/BackgroundControllerI.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using Test;
-using System.Threading;
using System.Collections.Generic;
internal class BackgroundControllerI : BackgroundControllerDisp_
@@ -89,10 +88,6 @@ internal class BackgroundControllerI : BackgroundControllerDisp_
}
private Ice.ObjectAdapter _adapter;
-#if COMPACT
- private IceInternal.HashSet<string> _pausedCalls = new IceInternal.HashSet<string>();
-#else
private HashSet<string> _pausedCalls = new HashSet<string>();
-#endif
private Configuration _configuration;
}
diff --git a/csharp/test/Ice/background/Client.cs b/csharp/test/Ice/background/Client.cs
index f57e59d4857..da54678ded4 100644
--- a/csharp/test/Ice/background/Client.cs
+++ b/csharp/test/Ice/background/Client.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -65,7 +64,7 @@ public class Client
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
Console.Error.WriteLine(ex);
status = 1;
diff --git a/csharp/test/Ice/background/Connector.cs b/csharp/test/Ice/background/Connector.cs
index a72482b34c5..6824589c750 100644
--- a/csharp/test/Ice/background/Connector.cs
+++ b/csharp/test/Ice/background/Connector.cs
@@ -7,9 +7,6 @@
//
// **********************************************************************
-using System.Diagnostics;
-using System.Net.Sockets;
-
internal class Connector : IceInternal.Connector
{
public IceInternal.Transceiver connect()
diff --git a/csharp/test/Ice/background/Server.cs b/csharp/test/Ice/background/Server.cs
index f01edd4113f..26cccb4eae9 100644
--- a/csharp/test/Ice/background/Server.cs
+++ b/csharp/test/Ice/background/Server.cs
@@ -9,7 +9,6 @@
using System;
using System.IO;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
diff --git a/csharp/test/Ice/binding/AllTests.cs b/csharp/test/Ice/binding/AllTests.cs
index 3c23c895927..4343b13e510 100644
--- a/csharp/test/Ice/binding/AllTests.cs
+++ b/csharp/test/Ice/binding/AllTests.cs
@@ -8,24 +8,10 @@
// **********************************************************************
using System;
-using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
-using System.Threading;
using Test;
-#if SILVERLIGHT
-using System.Net;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Documents;
-using System.Windows.Ink;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Animation;
-using System.Windows.Shapes;
-#endif
-
public class AllTests : TestCommon.TestApp
{
private static string getAdapterNameWithAMI(TestIntfPrx testIntf)
@@ -103,12 +89,7 @@ public class AllTests : TestCommon.TestApp
}
};
-#if SILVERLIGHT
- override
- public void run(Ice.Communicator communicator)
-#else
public static void allTests(Ice.Communicator communicator)
-#endif
{
string @ref = "communicator:default -p 12010";
RemoteCommunicatorPrx com = RemoteCommunicatorPrxHelper.uncheckedCast(communicator.stringToProxy(@ref));
@@ -749,7 +730,6 @@ public class AllTests : TestCommon.TestApp
}
WriteLine("ok");
-#if !SILVERLIGHT
Write("testing endpoint mode filtering... ");
Flush();
{
@@ -771,7 +751,6 @@ public class AllTests : TestCommon.TestApp
}
}
WriteLine("ok");
-#endif
if(communicator.getProperties().getProperty("Ice.Plugin.IceSSL").Length > 0)
{
Write("testing unsecure vs. secure endpoints... ");
@@ -828,7 +807,6 @@ public class AllTests : TestCommon.TestApp
WriteLine("ok");
}
-#if !SILVERLIGHT && !COMPACT && !UNITY && !DOTNET3_5
{
Write("testing ipv4 & ipv6 connections... ");
Flush();
@@ -967,8 +945,6 @@ public class AllTests : TestCommon.TestApp
WriteLine("ok");
}
-#endif
-
com.shutdown();
}
diff --git a/csharp/test/Ice/binding/Client.cs b/csharp/test/Ice/binding/Client.cs
index bac714d96fe..7c7b51e3b37 100644
--- a/csharp/test/Ice/binding/Client.cs
+++ b/csharp/test/Ice/binding/Client.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
diff --git a/csharp/test/Ice/binding/RemoteObjectAdapterI.cs b/csharp/test/Ice/binding/RemoteObjectAdapterI.cs
index 8b1b41cf37b..3b7b500422d 100644
--- a/csharp/test/Ice/binding/RemoteObjectAdapterI.cs
+++ b/csharp/test/Ice/binding/RemoteObjectAdapterI.cs
@@ -15,7 +15,7 @@ public class RemoteObjectAdapterI : RemoteObjectAdapterDisp_
{
_adapter = adapter;
_testIntf = TestIntfPrxHelper.uncheckedCast(_adapter.add(new TestI(),
- _adapter.getCommunicator().stringToIdentity("test")));
+ _adapter.getCommunicator().stringToIdentity("test")));
_adapter.activate();
}
diff --git a/csharp/test/Ice/binding/Server.cs b/csharp/test/Ice/binding/Server.cs
index a0cff27f76e..d1d5df94367 100644
--- a/csharp/test/Ice/binding/Server.cs
+++ b/csharp/test/Ice/binding/Server.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -44,7 +43,7 @@ public class Server
communicator = Ice.Util.initialize(ref args, initData);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
System.Console.Error.WriteLine(ex);
status = 1;
@@ -58,7 +57,7 @@ public class Server
}
catch(Ice.LocalException ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
}
diff --git a/csharp/test/Ice/checksum/server/Server.cs b/csharp/test/Ice/checksum/server/Server.cs
index cdd4e1d970e..a06e801cb97 100644
--- a/csharp/test/Ice/checksum/server/Server.cs
+++ b/csharp/test/Ice/checksum/server/Server.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
public class Server
{
diff --git a/csharp/test/Ice/defaultServant/AllTests.cs b/csharp/test/Ice/defaultServant/AllTests.cs
index 72130d77d64..b966da4da25 100644
--- a/csharp/test/Ice/defaultServant/AllTests.cs
+++ b/csharp/test/Ice/defaultServant/AllTests.cs
@@ -15,7 +15,7 @@ public class AllTests
{
if(!b)
{
- throw new System.Exception();
+ throw new Exception();
}
}
diff --git a/csharp/test/Ice/defaultServant/Client.cs b/csharp/test/Ice/defaultServant/Client.cs
index 83a466285fe..00d9b182597 100644
--- a/csharp/test/Ice/defaultServant/Client.cs
+++ b/csharp/test/Ice/defaultServant/Client.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -36,7 +35,7 @@ public class Client
communicator = Ice.Util.initialize(ref args);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
Console.Error.WriteLine(ex);
status = 1;
diff --git a/csharp/test/Ice/defaultServant/MyObjectI.cs b/csharp/test/Ice/defaultServant/MyObjectI.cs
index bd829113d96..5c33482e40b 100644
--- a/csharp/test/Ice/defaultServant/MyObjectI.cs
+++ b/csharp/test/Ice/defaultServant/MyObjectI.cs
@@ -7,7 +7,6 @@
//
// **********************************************************************
-
public sealed class MyObjectI : Test.MyObjectDisp_
{
public override void
diff --git a/csharp/test/Ice/defaultValue/AllTests.cs b/csharp/test/Ice/defaultValue/AllTests.cs
index 48fb194a04c..d637192a5c9 100644
--- a/csharp/test/Ice/defaultValue/AllTests.cs
+++ b/csharp/test/Ice/defaultValue/AllTests.cs
@@ -7,28 +7,9 @@
//
// **********************************************************************
-using System;
-
-#if SILVERLIGHT
-using System.Net;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Documents;
-using System.Windows.Ink;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Animation;
-using System.Windows.Shapes;
-#endif
-
public class AllTests : TestCommon.TestApp
{
-#if SILVERLIGHT
- override
- public void run(Ice.Communicator communicator)
-#else
public static void allTests()
-#endif
{
Write("testing default values... ");
Flush();
diff --git a/csharp/test/Ice/defaultValue/Client.cs b/csharp/test/Ice/defaultValue/Client.cs
index 44ebe14ff1d..8896ff77f82 100644
--- a/csharp/test/Ice/defaultValue/Client.cs
+++ b/csharp/test/Ice/defaultValue/Client.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
diff --git a/csharp/test/Ice/dictMapping/AllTests.cs b/csharp/test/Ice/dictMapping/AllTests.cs
index 7d6499fbea1..cabf73185b6 100644
--- a/csharp/test/Ice/dictMapping/AllTests.cs
+++ b/csharp/test/Ice/dictMapping/AllTests.cs
@@ -7,32 +7,10 @@
//
// **********************************************************************
-using System;
-
-#if SILVERLIGHT
-using System.Net;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Documents;
-using System.Windows.Ink;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Animation;
-using System.Windows.Shapes;
-#endif
-
public class AllTests : TestCommon.TestApp
{
-#if SILVERLIGHT
- override
- public void run(Ice.Communicator communicator)
-#else
public static Test.MyClassPrx allTests(Ice.Communicator communicator, bool collocated)
-#endif
{
-#if SILVERLIGHT
- bool collocated = false;
-#endif
Flush();
string rf = "test:default -p 12010";
Ice.ObjectPrx baseProxy = communicator.stringToProxy(rf);
@@ -50,10 +28,6 @@ public class AllTests : TestCommon.TestApp
TwowaysAMI.twowaysAMI(communicator, cl);
WriteLine("ok");
}
-#if SILVERLIGHT
- cl.shutdown();
-#else
return cl;
-#endif
}
}
diff --git a/csharp/test/Ice/dictMapping/Collocated.cs b/csharp/test/Ice/dictMapping/Collocated.cs
index 9b3cd44a719..a6b640699b3 100644
--- a/csharp/test/Ice/dictMapping/Collocated.cs
+++ b/csharp/test/Ice/dictMapping/Collocated.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
diff --git a/csharp/test/Ice/dictMapping/MyClassAMDI.cs b/csharp/test/Ice/dictMapping/MyClassAMDI.cs
index cd400690521..af7b5bde825 100644
--- a/csharp/test/Ice/dictMapping/MyClassAMDI.cs
+++ b/csharp/test/Ice/dictMapping/MyClassAMDI.cs
@@ -41,56 +41,11 @@ public sealed class MyClassI : MyClass
cb.ice_response(i, i);
}
- public override void opOV_async(AMD_MyClass_opOV cb, OV i, Ice.Current current)
- {
- cb.ice_response(i, i);
- }
-
- public override void opOR_async(AMD_MyClass_opOR cb, OR i, Ice.Current current)
- {
- cb.ice_response(i, i);
- }
-
- public override void opODV_async(AMD_MyClass_opODV cb, ODV i, Ice.Current current)
- {
- cb.ice_response(i, i);
- }
-
- public override void opODR_async(AMD_MyClass_opODR cb, ODR i, Ice.Current current)
- {
- cb.ice_response(i, i);
- }
-
- public override void opNODV_async(AMD_MyClass_opNODV cb, Dictionary<string, ODV> i, Ice.Current current)
- {
- cb.ice_response(i, i);
- }
-
- public override void opNODR_async(AMD_MyClass_opNODR cb, Dictionary<string, ODR> i, Ice.Current current)
- {
- cb.ice_response(i, i);
- }
-
- public override void opONDV_async(AMD_MyClass_opONDV cb, ONDV i, Ice.Current current)
- {
- cb.ice_response(i, i);
- }
-
- public override void opONDR_async(AMD_MyClass_opONDR cb, ONDR i, Ice.Current current)
- {
- cb.ice_response(i, i);
- }
-
public override void opNDAIS_async(AMD_MyClass_opNDAIS cb, Dictionary<string, int[]> i, Ice.Current current)
{
cb.ice_response(i, i);
}
- public override void opNDCIS_async(AMD_MyClass_opNDCIS cb, Dictionary<string, CIS> i, Ice.Current current)
- {
- cb.ice_response(i, i);
- }
-
public override void opNDGIS_async(AMD_MyClass_opNDGIS cb, Dictionary<string, List<int>> i, Ice.Current current)
{
cb.ice_response(i, i);
@@ -101,43 +56,8 @@ public sealed class MyClassI : MyClass
cb.ice_response(i, i);
}
- public override void opNDCSS_async(AMD_MyClass_opNDCSS cb, Dictionary<string, CSS> i, Ice.Current current)
- {
- cb.ice_response(i, i);
- }
-
public override void opNDGSS_async(AMD_MyClass_opNDGSS cb, Dictionary<string, List<string>> i, Ice.Current current)
{
cb.ice_response(i, i);
}
-
- public override void opODAIS_async(AMD_MyClass_opODAIS cb, ODAIS i, Ice.Current current)
- {
- cb.ice_response(i, i);
- }
-
- public override void opODCIS_async(AMD_MyClass_opODCIS cb, ODCIS i, Ice.Current current)
- {
- cb.ice_response(i, i);
- }
-
- public override void opODGIS_async(AMD_MyClass_opODGIS cb, ODGIS i, Ice.Current current)
- {
- cb.ice_response(i, i);
- }
-
- public override void opODASS_async(AMD_MyClass_opODASS cb, ODASS i, Ice.Current current)
- {
- cb.ice_response(i, i);
- }
-
- public override void opODCSS_async(AMD_MyClass_opODCSS cb, ODCSS i, Ice.Current current)
- {
- cb.ice_response(i, i);
- }
-
- public override void opODGSS_async(AMD_MyClass_opODGSS cb, ODGSS i, Ice.Current current)
- {
- cb.ice_response(i, i);
- }
}
diff --git a/csharp/test/Ice/dictMapping/MyClassI.cs b/csharp/test/Ice/dictMapping/MyClassI.cs
index d61576bbe85..ad4fb4bfce3 100644
--- a/csharp/test/Ice/dictMapping/MyClassI.cs
+++ b/csharp/test/Ice/dictMapping/MyClassI.cs
@@ -49,56 +49,6 @@ public sealed class MyClassI : Test.MyClass
return i;
}
- public override OV opOV(OV i, out OV o, Ice.Current current)
- {
- o = i;
- return i;
- }
-
- public override OR opOR(OR i, out OR o, Ice.Current current)
- {
- o = i;
- return i;
- }
-
- public override ODV opODV(ODV i, out ODV o, Ice.Current current)
- {
- o = i;
- return i;
- }
-
- public override ODR opODR(ODR i, out ODR o, Ice.Current current)
- {
- o = i;
- return i;
- }
-
- public override Dictionary<string, ODV> opNODV(Dictionary<string, ODV> i, out Dictionary<string, ODV> o,
- Ice.Current current)
- {
- o = i;
- return i;
- }
-
- public override Dictionary<string, ODR> opNODR(Dictionary<string, ODR> i, out Dictionary<string, ODR> o,
- Ice.Current current)
- {
- o = i;
- return i;
- }
-
- public override ONDV opONDV(ONDV i, out ONDV o, Ice.Current current)
- {
- o = i;
- return i;
- }
-
- public override ONDR opONDR(ONDR i, out ONDR o, Ice.Current current)
- {
- o = i;
- return i;
- }
-
public override Dictionary<string, int[]> opNDAIS(Dictionary<string, int[]> i,
out Dictionary<string, int[]> o,
Ice.Current current)
@@ -107,14 +57,6 @@ public sealed class MyClassI : Test.MyClass
return i;
}
- public override Dictionary<string, CIS> opNDCIS(Dictionary<string, CIS> i,
- out Dictionary<string, CIS> o,
- Ice.Current current)
- {
- o = i;
- return i;
- }
-
public override Dictionary<string, List<int>> opNDGIS(Dictionary<string, List<int>> i,
out Dictionary<string, List<int>> o,
Ice.Current current)
@@ -131,14 +73,6 @@ public sealed class MyClassI : Test.MyClass
return i;
}
- public override Dictionary<string, CSS> opNDCSS(Dictionary<string, CSS> i,
- out Dictionary<string, CSS> o,
- Ice.Current current)
- {
- o = i;
- return i;
- }
-
public override Dictionary<string, List<string>> opNDGSS(Dictionary<string, List<string>> i,
out Dictionary<string, List<string>> o,
Ice.Current current)
@@ -146,40 +80,4 @@ public sealed class MyClassI : Test.MyClass
o = i;
return i;
}
-
- public override ODAIS opODAIS(ODAIS i, out ODAIS o, Ice.Current current)
- {
- o = i;
- return i;
- }
-
- public override ODCIS opODCIS(ODCIS i, out ODCIS o, Ice.Current current)
- {
- o = i;
- return i;
- }
-
- public override ODGIS opODGIS(ODGIS i, out ODGIS o, Ice.Current current)
- {
- o = i;
- return i;
- }
-
- public override ODASS opODASS(ODASS i, out ODASS o, Ice.Current current)
- {
- o = i;
- return i;
- }
-
- public override ODCSS opODCSS(ODCSS i, out ODCSS o, Ice.Current current)
- {
- o = i;
- return i;
- }
-
- public override ODGSS opODGSS(ODGSS i, out ODGSS o, Ice.Current current)
- {
- o = i;
- return i;
- }
}
diff --git a/csharp/test/Ice/dictMapping/Server.cs b/csharp/test/Ice/dictMapping/Server.cs
index 5ebdb9f0c3a..c43e83854d8 100644
--- a/csharp/test/Ice/dictMapping/Server.cs
+++ b/csharp/test/Ice/dictMapping/Server.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -40,7 +39,7 @@ public class Server
communicator = Ice.Util.initialize(ref args);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
Console.Error.WriteLine(ex);
status = 1;
diff --git a/csharp/test/Ice/dictMapping/Test.ice b/csharp/test/Ice/dictMapping/Test.ice
index d4717f84ecd..d9d11203b70 100644
--- a/csharp/test/Ice/dictMapping/Test.ice
+++ b/csharp/test/Ice/dictMapping/Test.ice
@@ -23,41 +23,18 @@ struct TEstNv
IntSeq s;
};
-["clr:collection"] dictionary<int, int> OV;
-["clr:collection"] dictionary<string, string> OR;
-["clr:collection"] dictionary<string, OV> ODV;
-["clr:collection"] dictionary<string, OR> ODR;
-
-dictionary<string, ODV> NODV;
-dictionary<string, ODR> NODR;
-
-["clr:collection"] dictionary<string, NDV> ONDV;
-["clr:collection"] dictionary<string, NDR> ONDR;
-
sequence<int> AIS;
-["clr:collection"] sequence<int> CIS;
["clr:generic:List"] sequence<int> GIS;
sequence<string> ASS;
-["clr:collection"] sequence<string> CSS;
["clr:generic:List"] sequence<string> GSS;
dictionary<string, AIS> NDAIS;
-dictionary<string, CIS> NDCIS;
dictionary<string, GIS> NDGIS;
dictionary<string, ASS> NDASS;
-dictionary<string, CSS> NDCSS;
dictionary<string, GSS> NDGSS;
-["clr:collection"] dictionary<string, AIS> ODAIS;
-["clr:collection"] dictionary<string, CIS> ODCIS;
-["clr:collection"] dictionary<string, GIS> ODGIS;
-
-["clr:collection"] dictionary<string, ASS> ODASS;
-["clr:collection"] dictionary<string, CSS> ODCSS;
-["clr:collection"] dictionary<string, GSS> ODGSS;
-
class MyClass
{
void shutdown();
@@ -67,32 +44,11 @@ class MyClass
NDV opNDV(NDV i, out NDV o);
NDR opNDR(NDR i, out NDR o);
- OV opOV(OV i, out OV o);
- OR opOR(OR i, out OR o);
- ODV opODV(ODV i, out ODV o);
- ODR opODR(ODR i, out ODR o);
-
- NODV opNODV(NODV i, out NODV o);
- NODR opNODR(NODR i, out NODR o);
-
- ONDV opONDV(ONDV i, out ONDV o);
- ONDR opONDR(ONDR i, out ONDR o);
-
NDAIS opNDAIS(NDAIS i, out NDAIS o);
- NDCIS opNDCIS(NDCIS i, out NDCIS o);
NDGIS opNDGIS(NDGIS i, out NDGIS o);
NDASS opNDASS(NDASS i, out NDASS o);
- NDCSS opNDCSS(NDCSS i, out NDCSS o);
NDGSS opNDGSS(NDGSS i, out NDGSS o);
-
- ODAIS opODAIS(ODAIS i, out ODAIS o);
- ODCIS opODCIS(ODCIS i, out ODCIS o);
- ODGIS opODGIS(ODGIS i, out ODGIS o);
-
- ODASS opODASS(ODASS i, out ODASS o);
- ODCSS opODCSS(ODCSS i, out ODCSS o);
- ODGSS opODGSS(ODGSS i, out ODGSS o);
};
};
diff --git a/csharp/test/Ice/dictMapping/TestAMD.ice b/csharp/test/Ice/dictMapping/TestAMD.ice
index 4d5319e7e38..fa7501c366d 100644
--- a/csharp/test/Ice/dictMapping/TestAMD.ice
+++ b/csharp/test/Ice/dictMapping/TestAMD.ice
@@ -17,41 +17,18 @@ dictionary<string, string> NR;
dictionary<string, NV> NDV;
dictionary<string, NR> NDR;
-["clr:collection"] dictionary<int, int> OV;
-["clr:collection"] dictionary<string, string> OR;
-["clr:collection"] dictionary<string, OV> ODV;
-["clr:collection"] dictionary<string, OR> ODR;
-
-dictionary<string, ODV> NODV;
-dictionary<string, ODR> NODR;
-
-["clr:collection"] dictionary<string, NDV> ONDV;
-["clr:collection"] dictionary<string, NDR> ONDR;
-
sequence<int> AIS;
-["clr:collection"] sequence<int> CIS;
["clr:generic:List"] sequence<int> GIS;
sequence<string> ASS;
-["clr:collection"] sequence<string> CSS;
["clr:generic:List"] sequence<string> GSS;
dictionary<string, AIS> NDAIS;
-dictionary<string, CIS> NDCIS;
dictionary<string, GIS> NDGIS;
dictionary<string, ASS> NDASS;
-dictionary<string, CSS> NDCSS;
dictionary<string, GSS> NDGSS;
-["clr:collection"] dictionary<string, AIS> ODAIS;
-["clr:collection"] dictionary<string, CIS> ODCIS;
-["clr:collection"] dictionary<string, GIS> ODGIS;
-
-["clr:collection"] dictionary<string, ASS> ODASS;
-["clr:collection"] dictionary<string, CSS> ODCSS;
-["clr:collection"] dictionary<string, GSS> ODGSS;
-
["amd"] class MyClass
{
void shutdown();
@@ -61,32 +38,11 @@ dictionary<string, GSS> NDGSS;
NDV opNDV(NDV i, out NDV o);
NDR opNDR(NDR i, out NDR o);
- OV opOV(OV i, out OV o);
- OR opOR(OR i, out OR o);
- ODV opODV(ODV i, out ODV o);
- ODR opODR(ODR i, out ODR o);
-
- NODV opNODV(NODV i, out NODV o);
- NODR opNODR(NODR i, out NODR o);
-
- ONDV opONDV(ONDV i, out ONDV o);
- ONDR opONDR(ONDR i, out ONDR o);
-
NDAIS opNDAIS(NDAIS i, out NDAIS o);
- NDCIS opNDCIS(NDCIS i, out NDCIS o);
NDGIS opNDGIS(NDGIS i, out NDGIS o);
NDASS opNDASS(NDASS i, out NDASS o);
- NDCSS opNDCSS(NDCSS i, out NDCSS o);
NDGSS opNDGSS(NDGSS i, out NDGSS o);
-
- ODAIS opODAIS(ODAIS i, out ODAIS o);
- ODCIS opODCIS(ODCIS i, out ODCIS o);
- ODGIS opODGIS(ODGIS i, out ODGIS o);
-
- ODASS opODASS(ODASS i, out ODASS o);
- ODCSS opODCSS(ODCSS i, out ODCSS o);
- ODGSS opODGSS(ODGSS i, out ODGSS o);
};
};
diff --git a/csharp/test/Ice/dictMapping/Twoways.cs b/csharp/test/Ice/dictMapping/Twoways.cs
index e96508ca990..bc174084a46 100644
--- a/csharp/test/Ice/dictMapping/Twoways.cs
+++ b/csharp/test/Ice/dictMapping/Twoways.cs
@@ -87,154 +87,6 @@ class Twoways
}
{
- OV i = new OV();
- i[0] = 1;
- i[1] = 0;
-
- OV o;
- OV r;
- r = p.opOV(i, out o);
-
- test(OV.Equals(i, o));
- test(OV.Equals(i, r));
- }
-
- {
- OR i = new OR();
- i["a"] = "b";
- i["b"] = "a";
-
- OR o;
- OR r;
- r = p.opOR(i, out o);
-
- test(OR.Equals(i, o));
- test(OR.Equals(i, r));
- }
-
- {
- ODV i = new ODV();
- OV id = new OV();
- id[0] = 1;
- id[1] = 0;
- i["a"] = id;
- i["b"] = id;
-
- ODV o;
- ODV r;
- r = p.opODV(i, out o);
-
- test(ODV.Equals(i, o));
- test(ODV.Equals(i, r));
- }
-
- {
- ODR i = new ODR();
- OR id = new OR();
- id["a"] = "b";
- id["b"] = "a";
- i["a"] = id;
- i["b"] = id;
-
- ODR o;
- ODR r;
- r = p.opODR(i, out o);
-
- test(ODR.Equals(i, o));
- test(ODR.Equals(i, r));
- }
-
- {
- Dictionary<string, ODV> i = new Dictionary<string, ODV>();
- OV iid = new OV();
- iid[0] = 1;
- iid[1] = 0;
- ODV id = new ODV();
- id["a"] = iid;
- id["b"] = iid;
- i["a"] = id;
- i["b"] = id;
-
- Dictionary<string, ODV> o;
- Dictionary<string, ODV> r;
- r = p.opNODV(i, out o);
-
- test(Ice.CollectionComparer.Equals(i, o));
- test(Ice.CollectionComparer.Equals(i, r));
- }
-
- {
- Dictionary<string, ODR> i = new Dictionary<string, ODR>();
- OR iid = new OR();
- iid["a"] = "b";
- iid["a"] = "b";
- ODR id = new ODR();
- id["a"] = iid;
- id["b"] = iid;
- i["a"] = id;
- i["b"] = id;
-
- Dictionary<string, ODR> o;
- Dictionary<string, ODR> r;
- r = p.opNODR(i, out o);
-
- test(Ice.CollectionComparer.Equals(i, o));
- test(Ice.CollectionComparer.Equals(i, r));
- }
-
- {
- ONDV i = new ONDV();
- Dictionary<int, int> iid = new Dictionary<int, int>();
- iid[0] = 1;
- iid[1] = 0;
- Dictionary<string, Dictionary<int, int>> id
- = new Dictionary<string, Dictionary<int, int>>();
- id["a"] = iid;
- id["b"] = iid;
- i["a"] = id;
- i["b"] = id;
-
- ONDV o;
- ONDV r;
- r = p.opONDV(i, out o);
-
- foreach(string key in i.Keys)
- {
- foreach(string s in i[key].Keys)
- {
- test(Ice.CollectionComparer.Equals(i[key][s], o[key][s]));
- test(Ice.CollectionComparer.Equals(i[key][s], r[key][s]));
- }
- }
- }
-
- {
- ONDR i = new ONDR();
- Dictionary<string, string> iid = new Dictionary<string, string>();
- iid["a"] = "b";
- iid["b"] = "a";
- Dictionary<string, Dictionary<string, string>> id
- = new Dictionary<string, Dictionary<string, string>>();
- id["a"] = iid;
- id["b"] = iid;
- i["a"] = id;
- i["b"] = id;
-
- ONDR o;
- ONDR r;
- r = p.opONDR(i, out o);
-
- foreach(string key in i.Keys)
- {
- foreach(string s in i[key].Keys)
- {
- test(Ice.CollectionComparer.Equals(i[key][s], o[key][s]));
- test(Ice.CollectionComparer.Equals(i[key][s], r[key][s]));
- }
- }
- }
-
- {
int[] ii = new int[] { 1, 2 };
Dictionary<string, int[]> i = new Dictionary<string, int[]>();
i["a"] = ii;
@@ -252,22 +104,6 @@ class Twoways
}
{
- CIS ii = new CIS();
- ii.Add(1);
- ii.Add(2);
- Dictionary<string, CIS> i = new Dictionary<string, CIS>();
- i["a"] = ii;
- i["b"] = ii;
-
- Dictionary<string, CIS> o;
- Dictionary<string, CIS> r;
- r = p.opNDCIS(i, out o);
-
- test(Ice.CollectionComparer.Equals(i, o));
- test(Ice.CollectionComparer.Equals(i, r));
- }
-
- {
List<int> ii = new List<int>();
ii.Add(1);
ii.Add(2);
@@ -304,22 +140,6 @@ class Twoways
}
{
- CSS ii = new CSS();
- ii.Add("a");
- ii.Add("b");
- Dictionary<string, CSS> i = new Dictionary<string, CSS>();
- i["a"] = ii;
- i["b"] = ii;
-
- Dictionary<string, CSS> o;
- Dictionary<string, CSS> r;
- r = p.opNDCSS(i, out o);
-
- test(Ice.CollectionComparer.Equals(i, o));
- test(Ice.CollectionComparer.Equals(i, r));
- }
-
- {
List<string> ii = new List<string>();
ii.Add("a");
ii.Add("b");
@@ -337,115 +157,5 @@ class Twoways
test(Ice.CollectionComparer.Equals(i[key], r[key]));
}
}
-
- {
- int[] ii = new int[] { 1, 2 };
- ODAIS i = new ODAIS();
- i["a"] = ii;
- i["b"] = ii;
-
- ODAIS o;
- ODAIS r;
- r = p.opODAIS(i, out o);
-
- foreach(string key in i.Keys)
- {
- test(Ice.CollectionComparer.Equals(i[key], o[key]));
- test(Ice.CollectionComparer.Equals(i[key], r[key]));
- }
- }
-
- {
- CIS ii = new CIS();
- ii.Add(1);
- ii.Add(2);
- ODCIS i = new ODCIS();
- i["a"] = ii;
- i["b"] = ii;
-
- ODCIS o;
- ODCIS r;
- r = p.opODCIS(i, out o);
-
- foreach(string key in i.Keys)
- {
- test(Ice.CollectionComparer.Equals(i[key], o[key]));
- test(Ice.CollectionComparer.Equals(i[key], r[key]));
- }
- }
-
- {
- List<int> ii = new List<int>();
- ii.Add(1);
- ii.Add(2);
- ODGIS i = new ODGIS();
- i["a"] = ii;
- i["b"] = ii;
-
- ODGIS o;
- ODGIS r;
- r = p.opODGIS(i, out o);
-
- foreach(string key in i.Keys)
- {
- test(Ice.CollectionComparer.Equals(i[key], o[key]));
- test(Ice.CollectionComparer.Equals(i[key], r[key]));
- }
- }
-
- {
- string[] ii = new string[] { "a", "b" };
- ODASS i = new ODASS();
- i["a"] = ii;
- i["b"] = ii;
-
- ODASS o;
- ODASS r;
- r = p.opODASS(i, out o);
-
- foreach(string key in i.Keys)
- {
- test(Ice.CollectionComparer.Equals(i[key], o[key]));
- test(Ice.CollectionComparer.Equals(i[key], r[key]));
- }
- }
-
- {
- CSS ii = new CSS();
- ii.Add("a");
- ii.Add("b");
- ODCSS i = new ODCSS();
- i["a"] = ii;
- i["b"] = ii;
-
- ODCSS o;
- ODCSS r;
- r = p.opODCSS(i, out o);
-
- foreach(string key in i.Keys)
- {
- test(Ice.CollectionComparer.Equals(i[key], o[key]));
- test(Ice.CollectionComparer.Equals(i[key], r[key]));
- }
- }
-
- {
- List<string> ii = new List<string>();
- ii.Add("a");
- ii.Add("b");
- ODGSS i = new ODGSS();
- i["a"] = ii;
- i["b"] = ii;
-
- ODGSS o;
- ODGSS r;
- r = p.opODGSS(i, out o);
-
- foreach(string key in i.Keys)
- {
- test(Ice.CollectionComparer.Equals(i[key], o[key]));
- test(Ice.CollectionComparer.Equals(i[key], r[key]));
- }
- }
}
}
diff --git a/csharp/test/Ice/dictMapping/TwowaysAMI.cs b/csharp/test/Ice/dictMapping/TwowaysAMI.cs
index 62cc81aa369..f0c0173b5b0 100644
--- a/csharp/test/Ice/dictMapping/TwowaysAMI.cs
+++ b/csharp/test/Ice/dictMapping/TwowaysAMI.cs
@@ -107,98 +107,6 @@ public class TwowaysAMI
callback.called();
}
- public void opOVI(Ice.AsyncResult result)
- {
- OV i = (OV)result.AsyncState;
- OV o;
- OV r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opOV(out o, result);
- test(Ice.CollectionComparer.Equals(i, o));
- test(Ice.CollectionComparer.Equals(i, r));
- callback.called();
- }
-
- public void opORI(Ice.AsyncResult result)
- {
- OR i = (OR)result.AsyncState;
- OR o;
- OR r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opOR(out o, result);
- test(Ice.CollectionComparer.Equals(i, o));
- test(Ice.CollectionComparer.Equals(i, r));
- callback.called();
- }
-
- public void opODVI(Ice.AsyncResult result)
- {
- ODV i = (ODV)result.AsyncState;
- ODV o;
- ODV r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opODV(out o, result);
- test(Ice.CollectionComparer.Equals(i, o));
- test(Ice.CollectionComparer.Equals(i, r));
- callback.called();
- }
-
- public void opODRI(Ice.AsyncResult result)
- {
- ODR i = (ODR)result.AsyncState;
- ODR o;
- ODR r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opODR(out o, result);
- test(Ice.CollectionComparer.Equals(i, o));
- test(Ice.CollectionComparer.Equals(i, r));
- callback.called();
- }
-
- public void opNODVI(Ice.AsyncResult result)
- {
- Dictionary<string, ODV> i = (Dictionary<string, ODV>)result.AsyncState;
- Dictionary<string, ODV> o;
- Dictionary<string, ODV> r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opNODV(out o, result);
- test(Ice.CollectionComparer.Equals(i, o));
- test(Ice.CollectionComparer.Equals(i, r));
- callback.called();
- }
-
- public void opNODRI(Ice.AsyncResult result)
- {
- Dictionary<string, ODR> i = (Dictionary<string, ODR>)result.AsyncState;
- Dictionary<string, ODR> o;
- Dictionary<string, ODR> r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opNODR(out o, result);
- test(Ice.CollectionComparer.Equals(i, o));
- test(Ice.CollectionComparer.Equals(i, r));
- callback.called();
- }
-
- public void opONDVI(Ice.AsyncResult result)
- {
- ONDV i = (ONDV)result.AsyncState;
- ONDV o;
- ONDV r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opONDV(out o, result);
- foreach(string key in i.Keys)
- {
- foreach(string s in i[key].Keys)
- {
- test(Ice.CollectionComparer.Equals(i[key][s], o[key][s]));
- test(Ice.CollectionComparer.Equals(i[key][s], r[key][s]));
- }
- }
- callback.called();
- }
-
- public void opONDRI(Ice.AsyncResult result)
- {
- ONDR i = (ONDR)result.AsyncState;
- ONDR o;
- ONDR r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opONDR(out o, result);
- foreach(string key in i.Keys)
- {
- foreach(string s in i[key].Keys)
- {
- test(Ice.CollectionComparer.Equals(i[key][s], o[key][s]));
- test(Ice.CollectionComparer.Equals(i[key][s], r[key][s]));
- }
- }
- callback.called();
- }
-
public void opNDAISI(Ice.AsyncResult result)
{
Dictionary<string, int[]> i = (Dictionary<string, int[]>)result.AsyncState;
@@ -212,19 +120,6 @@ public class TwowaysAMI
callback.called();
}
- public void opNDCISI(Ice.AsyncResult result)
- {
- Dictionary<string, CIS> i = (Dictionary<string, CIS>)result.AsyncState;
- Dictionary<string, CIS> o;
- Dictionary<string, CIS> r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opNDCIS(out o, result);
- foreach(string key in i.Keys)
- {
- test(Ice.CollectionComparer.Equals(i[key], o[key]));
- test(Ice.CollectionComparer.Equals(i[key], r[key]));
- }
- callback.called();
- }
-
public void opNDGISI(Ice.AsyncResult result)
{
Dictionary<string, List<int>> i = (Dictionary<string, List<int>>)result.AsyncState;
@@ -253,19 +148,6 @@ public class TwowaysAMI
callback.called();
}
- public void opNDCSSI(Ice.AsyncResult result)
- {
- Dictionary<string, CSS> i = (Dictionary<string,CSS>)result.AsyncState;
- Dictionary<string, CSS> o;
- Dictionary<string, CSS> r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opNDCSS(out o, result);
- foreach(string key in i.Keys)
- {
- test(Ice.CollectionComparer.Equals(i[key], o[key]));
- test(Ice.CollectionComparer.Equals(i[key], r[key]));
- }
- callback.called();
- }
-
public void opNDGSSI(Ice.AsyncResult result)
{
Dictionary<string, List<string>> i = (Dictionary<string,List<string>>)result.AsyncState;
@@ -280,84 +162,6 @@ public class TwowaysAMI
callback.called();
}
- public void opODAISI(Ice.AsyncResult result)
- {
- ODAIS i = (ODAIS)result.AsyncState;
- ODAIS o;
- ODAIS r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opODAIS(out o, result);
- foreach(string key in i.Keys)
- {
- test(Ice.CollectionComparer.Equals(i[key], o[key]));
- test(Ice.CollectionComparer.Equals(i[key], r[key]));
- }
- callback.called();
- }
-
- public void opODCISI(Ice.AsyncResult result)
- {
- ODCIS i = (ODCIS)result.AsyncState;
- ODCIS o;
- ODCIS r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opODCIS(out o, result);
- foreach(string key in i.Keys)
- {
- test(Ice.CollectionComparer.Equals(i[key], o[key]));
- test(Ice.CollectionComparer.Equals(i[key], r[key]));
- }
- callback.called();
- }
-
- public void opODGISI(Ice.AsyncResult result)
- {
- ODGIS i = (ODGIS)result.AsyncState;
- ODGIS o;
- ODGIS r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opODGIS(out o, result);
- foreach(string key in i.Keys)
- {
- test(Ice.CollectionComparer.Equals(i[key], o[key]));
- test(Ice.CollectionComparer.Equals(i[key], r[key]));
- }
- callback.called();
- }
-
- public void opODASSI(Ice.AsyncResult result)
- {
- ODASS i = (ODASS)result.AsyncState;
- ODASS o;
- ODASS r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opODASS(out o, result);
- foreach(string key in i.Keys)
- {
- test(Ice.CollectionComparer.Equals(i[key], o[key]));
- test(Ice.CollectionComparer.Equals(i[key], r[key]));
- }
- callback.called();
- }
-
- public void opODCSSI(Ice.AsyncResult result)
- {
- ODCSS i = (ODCSS)result.AsyncState;
- ODCSS o;
- ODCSS r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opODCSS(out o, result);
- foreach(string key in i.Keys)
- {
- test(Ice.CollectionComparer.Equals(i[key], o[key]));
- test(Ice.CollectionComparer.Equals(i[key], r[key]));
- }
- callback.called();
- }
-
- public void opODGSSI(Ice.AsyncResult result)
- {
- ODGSS i = (ODGSS)result.AsyncState;
- ODGSS o;
- ODGSS r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opODGSS(out o, result);
- foreach(string key in i.Keys)
- {
- test(Ice.CollectionComparer.Equals(i[key], o[key]));
- test(Ice.CollectionComparer.Equals(i[key], r[key]));
- }
- callback.called();
- }
-
public virtual void check()
{
callback.check();
@@ -415,118 +219,6 @@ public class TwowaysAMI
}
{
- OV i = new OV();
- i[0] = 1;
- i[1] = 0;
-
- Callback cb = new Callback();
- p.begin_opOV(i, null, cb.opOVI, i);
- cb.check();
- }
-
- {
- OR i = new OR();
- i["a"] = "b";
- i["b"] = "a";
-
- Callback cb = new Callback();
- p.begin_opOR(i, null, cb.opORI, i);
- cb.check();
- }
-
- {
- ODV i = new ODV();
- OV id = new OV();
- id[0] = 1;
- id[1] = 0;
- i["a"] = id;
- i["b"] = id;
-
- Callback cb = new Callback();
- p.begin_opODV(i, null, cb.opODVI, i);
- cb.check();
- }
-
- {
- ODR i = new ODR();
- OR id = new OR();
- id["a"] = "b";
- id["b"] = "a";
- i["a"] = id;
- i["b"] = id;
-
- Callback cb = new Callback();
- p.begin_opODR(i, null, cb.opODRI, i);
- cb.check();
- }
-
- {
- Dictionary<string, ODV> i = new Dictionary<string, ODV>();
- OV iid = new OV();
- iid[0] = 1;
- iid[1] = 0;
- ODV id = new ODV();
- id["a"] = iid;
- id["b"] = iid;
- i["a"] = id;
- i["b"] = id;
-
- Callback cb = new Callback();
- p.begin_opNODV(i, null, cb.opNODVI, i);
- cb.check();
- }
-
- {
- Dictionary<string, ODR> i = new Dictionary<string, ODR>();
- OR iid = new OR();
- iid["a"] = "b";
- iid["b"] = "a";
- ODR id = new ODR();
- id["a"] = iid;
- id["b"] = iid;
- i["a"] = id;
- i["b"] = id;
-
- Callback cb = new Callback();
- p.begin_opNODR(i, null, cb.opNODRI, i);
- cb.check();
- }
-
- {
- ONDV i = new ONDV();
- Dictionary<int, int> iid = new Dictionary<int, int>();
- iid[0] = 1;
- iid[1] = 0;
- Dictionary<string, Dictionary<int, int>> id
- = new Dictionary<string, Dictionary<int, int>>();
- id["a"] = iid;
- id["b"] = iid;
- i["a"] = id;
- i["b"] = id;
-
- Callback cb = new Callback();
- p.begin_opONDV(i, null, cb.opONDVI, i);
- cb.check();
- }
-
- {
- ONDR i = new ONDR();
- Dictionary<string, string> iid = new Dictionary<string, string>();
- iid["a"] = "b";
- iid["b"] = "a";
- Dictionary<string, Dictionary<string, string>> id
- = new Dictionary<string, Dictionary<string, string>>();
- id["a"] = iid;
- id["b"] = iid;
- i["a"] = id;
- i["b"] = id;
-
- Callback cb = new Callback();
- p.begin_opONDR(i, null, cb.opONDRI, i);
- cb.check();
- }
-
- {
int[] ii = new int[] { 1, 2 };
Dictionary<string, int[]> i = new Dictionary<string, int[]>();
i["a"] = ii;
@@ -538,19 +230,6 @@ public class TwowaysAMI
}
{
- CIS ii = new CIS();
- ii.Add(1);
- ii.Add(2);
- Dictionary<string, CIS> i = new Dictionary<string, CIS>();
- i["a"] = ii;
- i["b"] = ii;
-
- Callback cb = new Callback();
- p.begin_opNDCIS(i, null, cb.opNDCISI, i);
- cb.check();
- }
-
- {
List<int> ii = new List<int>();
ii.Add(1);
ii.Add(2);
@@ -575,19 +254,6 @@ public class TwowaysAMI
}
{
- CSS ii = new CSS();
- ii.Add("a");
- ii.Add("b");
- Dictionary<string, CSS> i = new Dictionary<string, CSS>();
- i["a"] = ii;
- i["b"] = ii;
-
- Callback cb = new Callback();
- p.begin_opNDCSS(i, null, cb.opNDCSSI, i);
- cb.check();
- }
-
- {
List<string> ii = new List<string>();
ii.Add("a");
ii.Add("b");
@@ -599,79 +265,5 @@ public class TwowaysAMI
p.begin_opNDGSS(i, null, cb.opNDGSSI, i);
cb.check();
}
-
- {
- int[] ii = new int[] { 1, 2 };
- ODAIS i = new ODAIS();
- i["a"] = ii;
- i["b"] = ii;
-
- Callback cb = new Callback();
- p.begin_opODAIS(i, null, cb.opODAISI, i);
- cb.check();
- }
-
- {
- CIS ii = new CIS();
- ii.Add(1);
- ii.Add(2);
- ODCIS i = new ODCIS();
- i["a"] = ii;
- i["b"] = ii;
-
- Callback cb = new Callback();
- p.begin_opODCIS(i, null, cb.opODCISI, i);
- cb.check();
- }
-
- {
- List<int> ii = new List<int>();
- ii.Add(1);
- ii.Add(2);
- ODGIS i = new ODGIS();
- i["a"] = ii;
- i["b"] = ii;
-
- Callback cb = new Callback();
- p.begin_opODGIS(i, null, cb.opODGISI, i);
- cb.check();
- }
-
- {
- string[] ii = new string[] { "a", "b" };
- ODASS i = new ODASS();
- i["a"] = ii;
- i["b"] = ii;
-
- Callback cb = new Callback();
- p.begin_opODASS(i, null, cb.opODASSI, i);
- cb.check();
- }
-
- {
- CSS ii = new CSS();
- ii.Add("a");
- ii.Add("b");
- ODCSS i = new ODCSS();
- i["a"] = ii;
- i["b"] = ii;
-
- Callback cb = new Callback();
- p.begin_opODCSS(i, null, cb.opODCSSI, i);
- cb.check();
- }
-
- {
- List<string> ii = new List<string>();
- ii.Add("a");
- ii.Add("b");
- ODGSS i = new ODGSS();
- i["a"] = ii;
- i["b"] = ii;
-
- Callback cb = new Callback();
- p.begin_opODGSS(i, null, cb.opODGSSI, i);
- cb.check();
- }
}
}
diff --git a/csharp/test/Ice/dispatcher/AllTests.cs b/csharp/test/Ice/dispatcher/AllTests.cs
index b509bd043bb..61e7413236a 100644
--- a/csharp/test/Ice/dispatcher/AllTests.cs
+++ b/csharp/test/Ice/dispatcher/AllTests.cs
@@ -8,24 +8,9 @@
// **********************************************************************
-using System;
-using System.Collections;
-using System.Collections.Generic;
using System.Diagnostics;
-using System.Threading;
using Test;
-#if SILVERLIGHT
-using System.Net;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Documents;
-using System.Windows.Ink;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Animation;
-using System.Windows.Shapes;
-#endif
public class AllTests : TestCommon.TestApp
{
@@ -90,21 +75,7 @@ public class AllTests : TestCommon.TestApp
private bool _called;
}
-#if SILVERLIGHT
- public override Ice.InitializationData initData()
- {
- Ice.InitializationData initData = new Ice.InitializationData();
- initData.properties = Ice.Util.createProperties();
- initData.properties.setProperty("Ice.Warn.AMICallback", "0");
- initData.dispatcher = new Dispatcher().dispatch;
- return initData;
- }
-
- override
- public void run(Ice.Communicator communicator)
-#else
public static void allTests(Ice.Communicator communicator)
-#endif
{
string sref = "test:default -p 12010";
Ice.ObjectPrx obj = communicator.stringToProxy(sref);
diff --git a/csharp/test/Ice/dispatcher/Client.cs b/csharp/test/Ice/dispatcher/Client.cs
index 7c4e7368e77..e7a69b700be 100644
--- a/csharp/test/Ice/dispatcher/Client.cs
+++ b/csharp/test/Ice/dispatcher/Client.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -44,9 +43,9 @@ public class Client
communicator = Ice.Util.initialize(ref args, initData);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
diff --git a/csharp/test/Ice/dispatcher/Collocated.cs b/csharp/test/Ice/dispatcher/Collocated.cs
index b15880f4ac2..583795d3367 100644
--- a/csharp/test/Ice/dispatcher/Collocated.cs
+++ b/csharp/test/Ice/dispatcher/Collocated.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -51,9 +50,9 @@ public class Collocated
communicator = Ice.Util.initialize(ref args, initData);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
@@ -65,7 +64,7 @@ public class Collocated
}
catch(Ice.LocalException ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
}
diff --git a/csharp/test/Ice/dispatcher/Dispatcher.cs b/csharp/test/Ice/dispatcher/Dispatcher.cs
index a5caa9eca24..4bd201c88df 100644
--- a/csharp/test/Ice/dispatcher/Dispatcher.cs
+++ b/csharp/test/Ice/dispatcher/Dispatcher.cs
@@ -7,9 +7,7 @@
//
// **********************************************************************
-using System;
using System.Diagnostics;
-using System.Reflection;
using System.Collections.Generic;
using System.Threading;
@@ -35,16 +33,12 @@ public class Dispatcher
{
while(true)
{
-#if COMPACT
- Ice.VoidAction call = null;
-#else
System.Action call = null;
-#endif
lock(_m)
{
if(!_terminated && _calls.Count == 0)
{
- System.Threading.Monitor.Wait(_m);
+ Monitor.Wait(_m);
}
if(_calls.Count > 0)
@@ -73,18 +67,14 @@ public class Dispatcher
}
}
-#if COMPACT
- public void dispatch(Ice.VoidAction call, Ice.Connection con)
-#else
public void dispatch(System.Action call, Ice.Connection con)
-#endif
{
lock(_m)
{
_calls.Enqueue(call);
if(_calls.Count == 1)
{
- System.Threading.Monitor.Pulse(_m);
+ Monitor.Pulse(_m);
}
}
}
@@ -94,7 +84,7 @@ public class Dispatcher
lock(_m)
{
_instance._terminated = true;
- System.Threading.Monitor.Pulse(_m);
+ Monitor.Pulse(_m);
}
_instance._thread.Join();
@@ -107,11 +97,7 @@ public class Dispatcher
static Dispatcher _instance;
-#if COMPACT
- private Queue<Ice.VoidAction> _calls = new Queue<Ice.VoidAction>();
-#else
private Queue<System.Action> _calls = new Queue<System.Action>();
-#endif
Thread _thread;
bool _terminated = false;
private static readonly object _m = new object();
diff --git a/csharp/test/Ice/dispatcher/Server.cs b/csharp/test/Ice/dispatcher/Server.cs
index 117c31b9fe9..82ceaa711c6 100644
--- a/csharp/test/Ice/dispatcher/Server.cs
+++ b/csharp/test/Ice/dispatcher/Server.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
diff --git a/csharp/test/Ice/echo/BlobjectI.cs b/csharp/test/Ice/echo/BlobjectI.cs
index fa807a4058f..003107de3b9 100644
--- a/csharp/test/Ice/echo/BlobjectI.cs
+++ b/csharp/test/Ice/echo/BlobjectI.cs
@@ -7,11 +7,7 @@
//
// **********************************************************************
-using System;
-using System.Collections.Generic;
using System.Diagnostics;
-using System.Threading;
-using Test;
public class BlobjectI : Ice.BlobjectAsync
{
diff --git a/csharp/test/Ice/echo/Server.cs b/csharp/test/Ice/echo/Server.cs
index b71b58bedd4..3d717db85b9 100644
--- a/csharp/test/Ice/echo/Server.cs
+++ b/csharp/test/Ice/echo/Server.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -69,7 +68,7 @@ public class Server
communicator = Ice.Util.initialize(ref args, initData);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
Console.Error.WriteLine(ex);
status = 1;
diff --git a/csharp/test/Ice/enums/AllTests.cs b/csharp/test/Ice/enums/AllTests.cs
index 2cc4ac8a522..2204b4cbf23 100644
--- a/csharp/test/Ice/enums/AllTests.cs
+++ b/csharp/test/Ice/enums/AllTests.cs
@@ -8,25 +8,11 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using Test;
public class AllTests : TestCommon.TestApp
{
-#if SILVERLIGHT
- public override Ice.InitializationData initData()
- {
- Ice.InitializationData initData = new Ice.InitializationData();
- initData.properties = Ice.Util.createProperties();
- initData.properties.setProperty("Ice.FactoryAssemblies", "optional,version=1.0.0.0");
- return initData;
- }
-
- override
- public void run(Ice.Communicator communicator)
-#else
public static TestIntfPrx allTests(Ice.Communicator communicator)
-#endif
{
string sref = "test:default -p 12010";
Ice.ObjectPrx obj = communicator.stringToProxy(sref);
@@ -205,10 +191,6 @@ public class AllTests : TestCommon.TestApp
}
Console.Out.WriteLine("ok");
-#if SILVERLIGHT
- proxy.shutdown();
-#else
return proxy;
-#endif
}
}
diff --git a/csharp/test/Ice/enums/Client.cs b/csharp/test/Ice/enums/Client.cs
index 0f55d9f44cf..1585a8ba793 100644
--- a/csharp/test/Ice/enums/Client.cs
+++ b/csharp/test/Ice/enums/Client.cs
@@ -30,11 +30,7 @@ public class Client
{
int status = 0;
Ice.Communicator communicator = null;
-
-#if !COMPACT && !UNITY
Debug.Listeners.Add(new ConsoleTraceListener());
-#endif
-
try
{
Ice.InitializationData initData = new Ice.InitializationData();
diff --git a/csharp/test/Ice/enums/Server.cs b/csharp/test/Ice/enums/Server.cs
index 752c68ae649..1612c8c6814 100644
--- a/csharp/test/Ice/enums/Server.cs
+++ b/csharp/test/Ice/enums/Server.cs
@@ -37,9 +37,7 @@ public class Server
int status = 0;
Ice.Communicator communicator = null;
-#if !COMPACT && !UNITY
Debug.Listeners.Add(new ConsoleTraceListener());
-#endif
try
{
@@ -49,9 +47,9 @@ public class Server
communicator = Ice.Util.initialize(ref args, initData);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
@@ -63,7 +61,7 @@ public class Server
}
catch(Ice.LocalException ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
}
diff --git a/csharp/test/Ice/exceptions/AllTests.cs b/csharp/test/Ice/exceptions/AllTests.cs
index 23042584a90..1f87fbdf86d 100644
--- a/csharp/test/Ice/exceptions/AllTests.cs
+++ b/csharp/test/Ice/exceptions/AllTests.cs
@@ -12,18 +12,6 @@ using System.Diagnostics;
using System.Threading;
using Test;
-#if SILVERLIGHT
-using System.Net;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Documents;
-using System.Windows.Ink;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Animation;
-using System.Windows.Shapes;
-#endif
-
public class AllTests : TestCommon.TestApp
{
private class Callback
@@ -39,7 +27,7 @@ public class AllTests : TestCommon.TestApp
{
while(!_called)
{
- System.Threading.Monitor.Wait(this);
+ Monitor.Wait(this);
}
_called = false;
@@ -52,36 +40,16 @@ public class AllTests : TestCommon.TestApp
{
Debug.Assert(!_called);
_called = true;
- System.Threading.Monitor.Pulse(this);
+ Monitor.Pulse(this);
}
}
private bool _called;
}
-#if SILVERLIGHT
- public override Ice.InitializationData initData()
- {
- Ice.InitializationData initData = new Ice.InitializationData();
- initData.properties = Ice.Util.createProperties();
- WriteLine("setting Ice.FactoryAssemblies");
- initData.properties.setProperty("Ice.FactoryAssemblies", "exceptions,version=1.0.0.0");
- initData.properties.setProperty("Ice.MessageSizeMax", "10");
- initData.properties.setProperty("Ice.Warn.Connections", "0");
- return initData;
- }
- override
- public void run(Ice.Communicator communicator)
-#else
public static ThrowerPrx allTests(Ice.Communicator communicator)
-#endif
{
-#if SILVERLIGHT
- WriteLine("Ice.FactoryAssemblies: " + communicator.getProperties().getProperty("Ice.FactoryAssemblies"));
-#endif
-
-#if !SILVERLIGHT
{
Write("testing object adapter registration exceptions... ");
Ice.ObjectAdapter first;
@@ -190,7 +158,7 @@ public class AllTests : TestCommon.TestApp
adapter.deactivate();
WriteLine("ok");
}
-#endif
+
{
Write("testing object factory registration exception... ");
communicator.getValueFactoryManager().add( _ => { return null; }, "::x");
@@ -1395,10 +1363,6 @@ public class AllTests : TestCommon.TestApp
}
WriteLine("ok");
-#if SILVERLIGHT
- thrower.shutdown();
-#else
return thrower;
-#endif
}
}
diff --git a/csharp/test/Ice/exceptions/Client.cs b/csharp/test/Ice/exceptions/Client.cs
index fc46b2ae0d7..5974abde6e0 100644
--- a/csharp/test/Ice/exceptions/Client.cs
+++ b/csharp/test/Ice/exceptions/Client.cs
@@ -9,7 +9,6 @@
using Test;
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -36,22 +35,15 @@ public class Client
{
Ice.InitializationData initData = new Ice.InitializationData();
initData.properties = Ice.Util.createProperties(ref args);
-#if COMPACT
- //
- // When using Ice for .NET Compact Framework, we need to specify
- // the assembly so that Ice can locate classes and exceptions.
- //
- initData.properties.setProperty("Ice.FactoryAssemblies", "client");
-#endif
initData.properties.setProperty("Ice.Warn.Connections", "0");
initData.properties.setProperty("TestAdapter.Endpoints", "default -p 12010:udp");
initData.properties.setProperty("Ice.MessageSizeMax", "10"); // 10KB max
communicator = Ice.Util.initialize(ref args, initData);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
- System.Console.WriteLine(ex);
+ Console.WriteLine(ex);
status = 1;
}
@@ -63,7 +55,7 @@ public class Client
}
catch(Ice.LocalException ex)
{
- System.Console.WriteLine(ex);
+ Console.WriteLine(ex);
status = 1;
}
}
diff --git a/csharp/test/Ice/exceptions/Collocated.cs b/csharp/test/Ice/exceptions/Collocated.cs
index b04bc7fe605..9a391f35513 100644
--- a/csharp/test/Ice/exceptions/Collocated.cs
+++ b/csharp/test/Ice/exceptions/Collocated.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -38,22 +37,14 @@ public class Collocated
{
Ice.InitializationData initData = new Ice.InitializationData();
initData.properties = Ice.Util.createProperties();
-#if COMPACT
- //
- // When using Ice for .NET Compact Framework, we need to specify
- // the assembly so that Ice can locate classes and exceptions.
- //
- initData.properties.setProperty("Ice.FactoryAssemblies", "collocated");
-#endif
-
initData.properties.setProperty("Ice.Warn.Dispatch", "0");
initData.properties.setProperty("Ice.MessageSizeMax", "10"); // 10KB max
communicator = Ice.Util.initialize(ref args, initData);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
- System.Console.WriteLine(ex);
+ Console.WriteLine(ex);
status = 1;
}
@@ -65,7 +56,7 @@ public class Collocated
}
catch(Ice.LocalException ex)
{
- System.Console.WriteLine(ex);
+ Console.WriteLine(ex);
status = 1;
}
}
diff --git a/csharp/test/Ice/exceptions/Server.cs b/csharp/test/Ice/exceptions/Server.cs
index 0a8f72e242f..0b8885256a4 100644
--- a/csharp/test/Ice/exceptions/Server.cs
+++ b/csharp/test/Ice/exceptions/Server.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
diff --git a/csharp/test/Ice/exceptions/ThrowerAMDI.cs b/csharp/test/Ice/exceptions/ThrowerAMDI.cs
index 76efec13f53..e8fda6b79ad 100644
--- a/csharp/test/Ice/exceptions/ThrowerAMDI.cs
+++ b/csharp/test/Ice/exceptions/ThrowerAMDI.cs
@@ -7,6 +7,7 @@
//
// **********************************************************************
+using System;
using System.Diagnostics;
using Test;
@@ -131,7 +132,7 @@ public class ThrowerI : ThrowerDisp_
public override void throwNonIceException_async(AMD_Thrower_throwNonIceException cb, Ice.Current current)
{
- throw new System.Exception();
+ throw new Exception();
}
public override void throwAssertException_async(AMD_Thrower_throwAssertException cb, Ice.Current current)
@@ -155,13 +156,13 @@ public class ThrowerI : ThrowerDisp_
{
cb.ice_response();
- throw new System.Exception();
+ throw new Exception();
}
public override void throwAfterException_async(AMD_Thrower_throwAfterException cb, Ice.Current current)
{
cb.ice_exception(new A());
- throw new System.Exception();
+ throw new Exception();
}
}
diff --git a/csharp/test/Ice/exceptions/ThrowerI.cs b/csharp/test/Ice/exceptions/ThrowerI.cs
index 53c03f7663e..3b609377f8d 100644
--- a/csharp/test/Ice/exceptions/ThrowerI.cs
+++ b/csharp/test/Ice/exceptions/ThrowerI.cs
@@ -94,7 +94,7 @@ public sealed class ThrowerI : ThrowerDisp_
public override void throwNonIceException(Ice.Current current)
{
- throw new System.Exception();
+ throw new Exception();
}
public override void throwAssertException(Ice.Current current)
diff --git a/csharp/test/Ice/facets/AllTests.cs b/csharp/test/Ice/facets/AllTests.cs
index a6325a760f8..d32bd75bd47 100644
--- a/csharp/test/Ice/facets/AllTests.cs
+++ b/csharp/test/Ice/facets/AllTests.cs
@@ -11,26 +11,10 @@ using System;
using System.Collections.Generic;
using Test;
-#if SILVERLIGHT
-using System.Net;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Documents;
-using System.Windows.Ink;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Animation;
-using System.Windows.Shapes;
-#endif
public class AllTests : TestCommon.TestApp
-{
-#if SILVERLIGHT
- override
- public void run(Ice.Communicator communicator)
-#else
+{
public static GPrx allTests(Ice.Communicator communicator)
-#endif
{
Write("testing Ice.Admin.Facets property... ");
@@ -54,7 +38,6 @@ public class AllTests : TestCommon.TestApp
communicator.getProperties().setProperty("Ice.Admin.Facets", "");
WriteLine("ok");
-#if !SILVERLIGHT
Write("testing facet registration exceptions... ");
communicator.getProperties().setProperty("FacetExceptionTestAdapter.Endpoints", "default");
Ice.ObjectAdapter adapter = communicator.createObjectAdapter("FacetExceptionTestAdapter");
@@ -110,7 +93,7 @@ public class AllTests : TestCommon.TestApp
WriteLine("ok");
adapter.deactivate();
-#endif
+
Write("testing stringToProxy... ");
Flush();
string @ref = "d:default -p 12010";
@@ -201,11 +184,6 @@ public class AllTests : TestCommon.TestApp
test(hf.callG().Equals("G"));
test(hf.callH().Equals("H"));
WriteLine("ok");
-
-#if SILVERLIGHT
- gf.shutdown();
-#else
return gf;
-#endif
}
}
diff --git a/csharp/test/Ice/facets/Client.cs b/csharp/test/Ice/facets/Client.cs
index 8a57fd4c4f0..e080de59e8e 100644
--- a/csharp/test/Ice/facets/Client.cs
+++ b/csharp/test/Ice/facets/Client.cs
@@ -9,7 +9,6 @@
using Test;
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -37,9 +36,9 @@ public class Client
communicator = Ice.Util.initialize(ref args);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
- System.Console.WriteLine(ex);
+ Console.WriteLine(ex);
status = 1;
}
@@ -51,7 +50,7 @@ public class Client
}
catch(Ice.LocalException ex)
{
- System.Console.WriteLine(ex);
+ Console.WriteLine(ex);
status = 1;
}
}
diff --git a/csharp/test/Ice/facets/Collocated.cs b/csharp/test/Ice/facets/Collocated.cs
index 096bbb31afe..8cdd1772075 100644
--- a/csharp/test/Ice/facets/Collocated.cs
+++ b/csharp/test/Ice/facets/Collocated.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
diff --git a/csharp/test/Ice/facets/Server.cs b/csharp/test/Ice/facets/Server.cs
index 02ad23f9e5f..74fe1ad5ece 100644
--- a/csharp/test/Ice/facets/Server.cs
+++ b/csharp/test/Ice/facets/Server.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
diff --git a/csharp/test/Ice/faultTolerance/AllTests.cs b/csharp/test/Ice/faultTolerance/AllTests.cs
index f439173202e..7d47a3edf96 100644
--- a/csharp/test/Ice/faultTolerance/AllTests.cs
+++ b/csharp/test/Ice/faultTolerance/AllTests.cs
@@ -9,22 +9,9 @@
using System;
using System.Diagnostics;
-using System.Threading;
using System.Collections.Generic;
using Test;
-#if SILVERLIGHT
-using System.Net;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Documents;
-using System.Windows.Ink;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Animation;
-using System.Windows.Shapes;
-#endif
-
public class AllTests : TestCommon.TestApp
{
private class Callback
@@ -60,7 +47,8 @@ public class AllTests : TestCommon.TestApp
private bool _called;
}
- private static void exceptAbortI(Ice.Exception ex) {
+ private static void exceptAbortI(Ice.Exception ex)
+ {
try
{
throw ex;
@@ -81,30 +69,8 @@ public class AllTests : TestCommon.TestApp
}
}
-#if SILVERLIGHT
- public override Ice.InitializationData initData()
- {
- Ice.InitializationData initData = new Ice.InitializationData();
- initData.properties = Ice.Util.createProperties();
- initData.properties.setProperty("Ice.Warn.Connections", "0");
- return initData;
- }
- override
- public void run(Ice.Communicator communicator)
-#else
public static void allTests(Ice.Communicator communicator, List<int> ports)
-#endif
{
-#if SILVERLIGHT
- List<int> ports = new List<int>();
- {
- int basePort = 12340;
- for (int i = 0; i < 12; i++)
- {
- ports.Add(basePort + i);
- }
- }
-#endif
Write("testing stringToProxy... ");
Flush();
string refString = "test";
diff --git a/csharp/test/Ice/faultTolerance/Client.cs b/csharp/test/Ice/faultTolerance/Client.cs
index 5c0ca67a402..fdb28f904f6 100644
--- a/csharp/test/Ice/faultTolerance/Client.cs
+++ b/csharp/test/Ice/faultTolerance/Client.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -21,7 +20,7 @@ public class Client
{
private static void usage()
{
- System.Console.Error.WriteLine("Usage: client port...");
+ Console.Error.WriteLine("Usage: client port...");
}
private static int run(string[] args, Ice.Communicator communicator)
@@ -32,11 +31,11 @@ public class Client
int port = 0;
try
{
- port = System.Int32.Parse(args[i]);
+ port = Int32.Parse(args[i]);
}
- catch(System.FormatException ex)
+ catch(FormatException ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
return 1;
}
ports.Add(port);
@@ -44,7 +43,7 @@ public class Client
if(ports.Count == 0)
{
- System.Console.Error.WriteLine("Client: no ports specified");
+ Console.Error.WriteLine("Client: no ports specified");
usage();
return 1;
}
@@ -70,9 +69,9 @@ public class Client
communicator = Ice.Util.initialize(ref args, initData);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
@@ -84,7 +83,7 @@ public class Client
}
catch(Ice.LocalException ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
}
diff --git a/csharp/test/Ice/faultTolerance/Server.cs b/csharp/test/Ice/faultTolerance/Server.cs
index 2df6d5133a2..97f0e735174 100644
--- a/csharp/test/Ice/faultTolerance/Server.cs
+++ b/csharp/test/Ice/faultTolerance/Server.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -21,7 +20,7 @@ public class Server
{
private static void usage()
{
- System.Console.Error.WriteLine("Usage: Server port");
+ Console.Error.WriteLine("Usage: Server port");
}
private static int run(string[] args, Ice.Communicator communicator)
@@ -31,25 +30,25 @@ public class Server
{
if(args[i][0] == '-')
{
- System.Console.Error.WriteLine("Server: unknown option `" + args[i] + "'");
+ Console.Error.WriteLine("Server: unknown option `" + args[i] + "'");
usage();
return 1;
}
if(port != 0)
{
- System.Console.Error.WriteLine("Server: only one port can be specified");
+ Console.Error.WriteLine("Server: only one port can be specified");
usage();
return 1;
}
try
{
- port = System.Int32.Parse(args[i]);
+ port = int.Parse(args[i]);
}
- catch(System.FormatException)
+ catch(FormatException)
{
- System.Console.Error.WriteLine("Server: invalid port");
+ Console.Error.WriteLine("Server: invalid port");
usage();
return 1;
}
@@ -57,7 +56,7 @@ public class Server
if(port <= 0)
{
- System.Console.Error.WriteLine("Server: no port specified");
+ Console.Error.WriteLine("Server: no port specified");
usage();
return 1;
}
@@ -90,9 +89,9 @@ public class Server
communicator = Ice.Util.initialize(ref args, initData);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
@@ -104,7 +103,7 @@ public class Server
}
catch(Ice.LocalException ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
}
diff --git a/csharp/test/Ice/faultTolerance/TestI.cs b/csharp/test/Ice/faultTolerance/TestI.cs
index ce35ae896a3..349c598a195 100644
--- a/csharp/test/Ice/faultTolerance/TestI.cs
+++ b/csharp/test/Ice/faultTolerance/TestI.cs
@@ -7,10 +7,8 @@
//
// **********************************************************************
-using System;
using System.Diagnostics;
using System.Threading;
-using IceInternal;
using Test;
public sealed class TestI : TestIntfDisp_
@@ -26,9 +24,7 @@ public sealed class TestI : TestIntfDisp_
private void commitSuicide()
{
-#if !UNITY
_p.Kill();
-#endif
Thread.Sleep(5000); // Give other threads time to die.
}
diff --git a/csharp/test/Ice/hash/Client.cs b/csharp/test/Ice/hash/Client.cs
index 2f14c62dde1..489c800dc9a 100644
--- a/csharp/test/Ice/hash/Client.cs
+++ b/csharp/test/Ice/hash/Client.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
using System.Collections.Generic;
@@ -24,7 +23,7 @@ public class Client
{
if(!b)
{
- throw new System.Exception();
+ throw new Exception();
}
}
@@ -35,8 +34,8 @@ public class Client
try
{
- System.Console.Error.Write("testing proxy & endpoint hash algorithm collisions... ");
- System.Console.Error.Flush();
+ Console.Error.Write("testing proxy & endpoint hash algorithm collisions... ");
+ Console.Error.Flush();
Dictionary<int, Ice.ObjectPrx> seenProxy = new Dictionary<int, Ice.ObjectPrx>();
Dictionary<int, Ice.Endpoint> seenEndpoint = new Dictionary<int, Ice.Endpoint>();
int proxyCollisions = 0;
@@ -50,7 +49,7 @@ public class Client
//initData.properties.setProperty("Ice.Plugin.IceSSL", "IceSSL:IceSSL.PluginFactory");
communicator = Ice.Util.initialize(ref args, initData);
{
- System.Random rand = new System.Random();
+ Random rand = new Random();
for(i = 0; proxyCollisions < maxCollisions &&
endpointCollisions < maxCollisions &&
i < maxIterations; ++i)
@@ -146,7 +145,7 @@ public class Client
}
{
- System.Random rand = new System.Random();
+ Random rand = new Random();
Ice.ProxyIdentityFacetKey comparer = new Ice.ProxyIdentityFacetKey();
proxyCollisions = 0;
seenProxy = new Dictionary<int, Ice.ObjectPrx>();
@@ -236,13 +235,13 @@ public class Client
test(iComparer.GetHashCode(prx9) == iComparer.GetHashCode(prx9));
test(ifComparer.GetHashCode(prx9) == ifComparer.GetHashCode(prx9));
- System.Console.Error.WriteLine("ok");
+ Console.Error.WriteLine("ok");
- System.Console.Error.Write("testing exceptions hash algorithm collisions... ");
+ Console.Error.Write("testing exceptions hash algorithm collisions... ");
{
Dictionary<int,Test.OtherException> seenException = new Dictionary<int, Test.OtherException>();
- System.Random rand = new System.Random();
+ Random rand = new Random();
int exceptionCollisions = 0;
for(i = 0; i < maxIterations &&
@@ -274,7 +273,7 @@ public class Client
//
{
Dictionary<int,Test.OtherException> seenException = new Dictionary<int, Test.OtherException>();
- System.Random rand = new System.Random();
+ Random rand = new Random();
int exceptionCollisions = 0;
for(i = 0; i < maxIterations &&
@@ -303,7 +302,7 @@ public class Client
{
Dictionary<int,Test.BaseException> seenException = new Dictionary<int, Test.BaseException>();
- System.Random rand = new System.Random();
+ Random rand = new Random();
int exceptionCollisions = 0;
for(i = 0; i < maxIterations &&
@@ -350,12 +349,12 @@ public class Client
}
test(exceptionCollisions < maxCollisions);
}
- System.Console.Error.WriteLine("ok");
+ Console.Error.WriteLine("ok");
- System.Console.Error.Write("testing struct hash algorithm collisions... ");
+ Console.Error.Write("testing struct hash algorithm collisions... ");
{
Dictionary<int,Test.PointF> seenPointF = new Dictionary<int, Test.PointF>();
- System.Random rand = new System.Random();
+ Random rand = new Random();
int structCollisions = 0;
for(i = 0; i < maxIterations && structCollisions < maxCollisions; ++i)
{
@@ -520,7 +519,7 @@ public class Client
}
test(structCollisions < maxCollisions);
}
- System.Console.Error.WriteLine("ok");
+ Console.Error.WriteLine("ok");
if(communicator != null)
{
@@ -530,7 +529,7 @@ public class Client
}
catch(Ice.LocalException ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
}
diff --git a/csharp/test/Ice/hold/AllTests.cs b/csharp/test/Ice/hold/AllTests.cs
index e26cce8aa0e..813f1e3a59a 100644
--- a/csharp/test/Ice/hold/AllTests.cs
+++ b/csharp/test/Ice/hold/AllTests.cs
@@ -10,18 +10,6 @@
using System;
using Test;
-#if SILVERLIGHT
-using System.Net;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Documents;
-using System.Windows.Ink;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Animation;
-using System.Windows.Shapes;
-#endif
-
public class AllTests : TestCommon.TestApp
{
private class Condition
@@ -79,12 +67,7 @@ public class AllTests : TestCommon.TestApp
private int _expected;
}
-#if SILVERLIGHT
- override
- public void run(Ice.Communicator communicator)
-#else
public static void allTests(Ice.Communicator communicator)
-#endif
{
Write("testing stringToProxy... ");
Flush();
diff --git a/csharp/test/Ice/hold/Client.cs b/csharp/test/Ice/hold/Client.cs
index b7e848e940f..d0f293fe44e 100644
--- a/csharp/test/Ice/hold/Client.cs
+++ b/csharp/test/Ice/hold/Client.cs
@@ -7,9 +7,7 @@
//
// **********************************************************************
-using Test;
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -36,9 +34,9 @@ public class Client
communicator = Ice.Util.initialize(ref args);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
@@ -50,7 +48,7 @@ public class Client
}
catch(Ice.LocalException ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
}
diff --git a/csharp/test/Ice/hold/HoldI.cs b/csharp/test/Ice/hold/HoldI.cs
index fb3c68f677b..c51f93f6cbb 100644
--- a/csharp/test/Ice/hold/HoldI.cs
+++ b/csharp/test/Ice/hold/HoldI.cs
@@ -7,8 +7,6 @@
//
// **********************************************************************
-using System;
-using System.Diagnostics;
using Test;
public sealed class HoldI : HoldDisp_
diff --git a/csharp/test/Ice/hold/Server.cs b/csharp/test/Ice/hold/Server.cs
index 98f7ace2c4c..495ad52658a 100644
--- a/csharp/test/Ice/hold/Server.cs
+++ b/csharp/test/Ice/hold/Server.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -60,9 +59,9 @@ public class Server
communicator = Ice.Util.initialize(ref args);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
@@ -74,7 +73,7 @@ public class Server
}
catch(Ice.LocalException ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
}
diff --git a/csharp/test/Ice/hold/Timer.cs b/csharp/test/Ice/hold/Timer.cs
index 2bc1aadbc9e..1c15e5f427a 100644
--- a/csharp/test/Ice/hold/Timer.cs
+++ b/csharp/test/Ice/hold/Timer.cs
@@ -43,7 +43,7 @@ public class Timer
public Timer()
{
- _t = new System.Threading.Thread(new System.Threading.ThreadStart(run));
+ _t = new Thread(new ThreadStart(run));
_t.Start();
}
@@ -56,7 +56,7 @@ public class Timer
e.when = currentMonotonicTimeMillis() + milliseconds;
_tasks.Add(e);
_tasks.Sort();
- System.Threading.Monitor.Pulse(this);
+ Monitor.Pulse(this);
}
}
@@ -69,7 +69,7 @@ public class Timer
e.when = 0;
_tasks.Add(e);
_tasks.Sort();
- System.Threading.Monitor.Pulse(this);
+ Monitor.Pulse(this);
}
}
@@ -89,7 +89,7 @@ public class Timer
{
while(_tasks.Count == 0)
{
- System.Threading.Monitor.Wait(this);
+ Monitor.Wait(this);
}
e = _tasks[0];
@@ -103,7 +103,7 @@ public class Timer
_tasks.RemoveAt(0);
break;
}
- System.Threading.Monitor.Wait(this, (int)(e.when - now));
+ Monitor.Wait(this, (int)(e.when - now));
}
}
e.task();
@@ -111,20 +111,12 @@ public class Timer
}
-#if SILVERLIGHT
- private long currentMonotonicTimeMillis()
- {
- return (System.DateTime.Now.Ticks - _begin) / 10000;
- }
- private long _begin = System.DateTime.Now.Ticks;
-#else
private long currentMonotonicTimeMillis()
{
return _sw.ElapsedMilliseconds;
}
private Stopwatch _sw = Stopwatch.StartNew();
-#endif
- private System.Threading.Thread _t;
+ private Thread _t;
private List<Entry> _tasks = new List<Entry>();
}
diff --git a/csharp/test/Ice/info/AllTests.cs b/csharp/test/Ice/info/AllTests.cs
index 81e577e5a66..1c1b34e30cb 100644
--- a/csharp/test/Ice/info/AllTests.cs
+++ b/csharp/test/Ice/info/AllTests.cs
@@ -7,32 +7,13 @@
//
// **********************************************************************
-using System;
-using System.Collections;
+
using System.Collections.Generic;
-using System.Diagnostics;
using Test;
-#if SILVERLIGHT
-using System.Windows.Controls;
-#endif
-
public class AllTests : TestCommon.TestApp
{
-#if SILVERLIGHT
- public override Ice.InitializationData initData()
- {
- Ice.InitializationData initData = new Ice.InitializationData();
- initData.properties = Ice.Util.createProperties();
- initData.properties.setProperty("Ice.Default.Host", "127.0.0.1");
- return initData;
- }
-
- override
- public void run(Ice.Communicator communicator)
-#else
public static void allTests(Ice.Communicator communicator)
-#endif
{
Write("testing proxy endpoint information... ");
Flush();
@@ -53,15 +34,7 @@ public class AllTests : TestCommon.TestApp
test(ipEndpoint.compress);
test(!ipEndpoint.datagram());
-#if __MonoCS__
- test(ipEndpoint.type() == Ice.TCPEndpointType.value && !ipEndpoint.secure() ||
- ipEndpoint.type() == Ice.WSEndpointType.value && !ipEndpoint.secure());
- test(ipEndpoint.type() == Ice.TCPEndpointType.value && ipEndpoint is Ice.TCPEndpointInfo ||
- ipEndpoint.type() == Ice.WSEndpointType.value && ipEndpoint is Ice.WSEndpointInfo);
-#elif COMPACT || SILVERLIGHT
- test(ipEndpoint.type() == Ice.TCPEndpointType.value && !ipEndpoint.secure());
- test(ipEndpoint.type() == Ice.TCPEndpointType.value && ipEndpoint is Ice.TCPEndpointInfo);
-#else
+
test(ipEndpoint.type() == Ice.TCPEndpointType.value && !ipEndpoint.secure() ||
ipEndpoint.type() == IceSSL.EndpointType.value && ipEndpoint.secure() ||
ipEndpoint.type() == Ice.WSEndpointType.value && !ipEndpoint.secure() ||
@@ -70,7 +43,6 @@ public class AllTests : TestCommon.TestApp
ipEndpoint.type() == IceSSL.EndpointType.value && ipEndpoint is IceSSL.EndpointInfo ||
ipEndpoint.type() == Ice.WSEndpointType.value && ipEndpoint is Ice.WSEndpointInfo ||
ipEndpoint.type() == Ice.WSSEndpointType.value && ipEndpoint is IceSSL.WSSEndpointInfo);
-#endif
Ice.UDPEndpointInfo udpEndpoint = (Ice.UDPEndpointInfo)endps[1].getInfo();
test(udpEndpoint.host.Equals("udphost"));
@@ -91,7 +63,6 @@ public class AllTests : TestCommon.TestApp
WriteLine("ok");
string defaultHost = communicator.getProperties().getProperty("Ice.Default.Host");
-#if !SILVERLIGHT
Ice.ObjectAdapter adapter;
Write("test object adapter endpoint information... ");
Flush();
@@ -105,14 +76,9 @@ public class AllTests : TestCommon.TestApp
test(IceUtilInternal.Arrays.Equals(endpoints, publishedEndpoints));
Ice.IPEndpointInfo ipEndpoint = (Ice.IPEndpointInfo)endpoints[0].getInfo();
-# if __MonoCS__
- test(ipEndpoint.type() == Ice.TCPEndpointType.value || ipEndpoint.type() == Ice.WSEndpointType.value);
-# elif COMPACT
- test(ipEndpoint.type() == Ice.TCPEndpointType.value);
-# else
test(ipEndpoint.type() == Ice.TCPEndpointType.value || ipEndpoint.type() == IceSSL.EndpointType.value ||
ipEndpoint.type() == Ice.WSEndpointType.value || ipEndpoint.type() == Ice.WSSEndpointType.value);
-# endif
+
test(ipEndpoint.host.Equals(defaultHost));
test(ipEndpoint.port > 0);
test(ipEndpoint.timeout == 15000);
@@ -146,7 +112,6 @@ public class AllTests : TestCommon.TestApp
adapter.destroy();
}
WriteLine("ok");
-#endif
Ice.ObjectPrx @base = communicator.stringToProxy("test:default -p 12010:udp -p 12010");
TestIntfPrx testIntf = TestIntfPrxHelper.checkedCast(@base);
@@ -166,12 +131,10 @@ public class AllTests : TestCommon.TestApp
int port = System.Int32.Parse(ctx["port"]);
test(port > 0);
-#if !SILVERLIGHT
info = @base.ice_datagram().ice_getConnection().getEndpoint().getInfo();
Ice.UDPEndpointInfo udp = (Ice.UDPEndpointInfo)info;
test(udp.port == 12010);
test(udp.host.Equals(defaultHost));
-#endif
}
WriteLine("ok");
@@ -185,14 +148,10 @@ public class AllTests : TestCommon.TestApp
test(!info.incoming);
test(info.adapterName.Length == 0);
test(info.remotePort == 12010);
-#if !SILVERLIGHT
test(info.localPort > 0);
-#endif
if(defaultHost.Equals("127.0.0.1"))
{
-#if !SILVERLIGHT
test(info.localAddress.Equals(defaultHost));
-#endif
test(info.remoteAddress.Equals(defaultHost));
}
test(info.rcvSize >= 1024);
@@ -201,7 +160,6 @@ public class AllTests : TestCommon.TestApp
Dictionary<string, string> ctx = testIntf.getConnectionInfoAsContext();
test(ctx["incoming"].Equals("true"));
test(ctx["adapterName"].Equals("TestAdapter"));
-#if !SILVERLIGHT
test(ctx["remoteAddress"].Equals(info.localAddress));
test(ctx["localAddress"].Equals(info.remoteAddress));
test(ctx["remotePort"].Equals(info.localPort.ToString()));
@@ -237,14 +195,12 @@ public class AllTests : TestCommon.TestApp
test(!info.incoming);
test(info.adapterName.Length == 0);
test(info.localPort > 0);
-#endif
test(info.remotePort == 12010);
+
if(defaultHost.Equals("127.0.0.1"))
{
test(info.remoteAddress.Equals(defaultHost));
-#if !SILVERLIGHT
test(info.localAddress.Equals(defaultHost));
-#endif
}
test(info.rcvSize >= 2048);
test(info.sndSize >= 1024);
diff --git a/csharp/test/Ice/info/Client.cs b/csharp/test/Ice/info/Client.cs
index fd16d0e2545..d0f293fe44e 100644
--- a/csharp/test/Ice/info/Client.cs
+++ b/csharp/test/Ice/info/Client.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -35,9 +34,9 @@ public class Client
communicator = Ice.Util.initialize(ref args);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
@@ -49,7 +48,7 @@ public class Client
}
catch(Ice.LocalException ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
}
diff --git a/csharp/test/Ice/info/Server.cs b/csharp/test/Ice/info/Server.cs
index 3e236b8d522..fc3fb6f7116 100644
--- a/csharp/test/Ice/info/Server.cs
+++ b/csharp/test/Ice/info/Server.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -42,7 +41,7 @@ public class Server
communicator = Ice.Util.initialize(ref args, initData);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
Console.Error.WriteLine(ex);
status = 1;
diff --git a/csharp/test/Ice/inheritance/AllTests.cs b/csharp/test/Ice/inheritance/AllTests.cs
index 4c385f7d4b8..a3e48def188 100644
--- a/csharp/test/Ice/inheritance/AllTests.cs
+++ b/csharp/test/Ice/inheritance/AllTests.cs
@@ -7,30 +7,11 @@
//
// **********************************************************************
-using System;
using Test;
-#if SILVERLIGHT
-using System.Windows.Controls;
-#endif
-
public class AllTests : TestCommon.TestApp
-{
-#if SILVERLIGHT
- public override Ice.InitializationData initData()
- {
- Ice.InitializationData initData = new Ice.InitializationData();
- initData.properties = Ice.Util.createProperties();
- initData.properties.setProperty("Ice.FactoryAssemblies", "inheritance,version=1.0.0.0");
- return initData;
- }
-
- override
- public void run(Ice.Communicator communicator)
-#else
+{
public static InitialPrx allTests(Ice.Communicator communicator)
-#endif
-
{
Write("testing stringToProxy... ");
Flush();
@@ -238,11 +219,6 @@ public class AllTests : TestCommon.TestApp
ib2o = cd.cdop(cd);
test(ib2o.Equals(cd));
WriteLine("ok");
-
-#if SILVERLIGHT
- initial.shutdown();
-#else
return initial;
-#endif
}
}
diff --git a/csharp/test/Ice/inheritance/Client.cs b/csharp/test/Ice/inheritance/Client.cs
index 6251c9ec06c..805670012c6 100644
--- a/csharp/test/Ice/inheritance/Client.cs
+++ b/csharp/test/Ice/inheritance/Client.cs
@@ -9,7 +9,6 @@
using Test;
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -35,20 +34,12 @@ public class Client
try
{
Ice.InitializationData data = new Ice.InitializationData();
-#if COMPACT
- //
- // When using Ice for .NET Compact Framework, we need to specify
- // the assembly so that Ice can locate classes and exceptions.
- //
- data.properties = Ice.Util.createProperties();
- data.properties.setProperty("Ice.FactoryAssemblies", "client");
-#endif
communicator = Ice.Util.initialize(ref args, data);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
@@ -60,7 +51,7 @@ public class Client
}
catch(Ice.LocalException ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
}
diff --git a/csharp/test/Ice/inheritance/Server.cs b/csharp/test/Ice/inheritance/Server.cs
index 114d047a55a..17129734766 100644
--- a/csharp/test/Ice/inheritance/Server.cs
+++ b/csharp/test/Ice/inheritance/Server.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -40,9 +39,9 @@ public class Server
communicator = Ice.Util.initialize(ref args);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
@@ -54,7 +53,7 @@ public class Server
}
catch(Ice.LocalException ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
}
diff --git a/csharp/test/Ice/interceptor/AMDInterceptorI.cs b/csharp/test/Ice/interceptor/AMDInterceptorI.cs
index 7643d8849f5..1b5283026b0 100644
--- a/csharp/test/Ice/interceptor/AMDInterceptorI.cs
+++ b/csharp/test/Ice/interceptor/AMDInterceptorI.cs
@@ -65,7 +65,7 @@ class AMDInterceptorI : InterceptorI, Ice.DispatchInterceptorAsyncCallback
return true;
}
- public bool exception(System.Exception ex)
+ public bool exception(Exception ex)
{
setActualStatus(ex);
return true;
@@ -93,7 +93,7 @@ class AMDInterceptorI : InterceptorI, Ice.DispatchInterceptorAsyncCallback
}
internal void
- setActualStatus(System.Exception ex)
+ setActualStatus(Exception ex)
{
lock(this)
{
@@ -111,7 +111,7 @@ class AMDInterceptorI : InterceptorI, Ice.DispatchInterceptorAsyncCallback
}
}
- internal System.Exception
+ internal Exception
getException()
{
lock(this)
@@ -121,5 +121,5 @@ class AMDInterceptorI : InterceptorI, Ice.DispatchInterceptorAsyncCallback
}
private Ice.DispatchStatus actualStatus_;
- private System.Exception exception_;
+ private Exception exception_;
}
diff --git a/csharp/test/Ice/interceptor/Client.cs b/csharp/test/Ice/interceptor/Client.cs
index 0dcaca2bcfb..14fc4d47a50 100644
--- a/csharp/test/Ice/interceptor/Client.cs
+++ b/csharp/test/Ice/interceptor/Client.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -251,14 +250,6 @@ public class Client
{
App app = new App();
Ice.InitializationData data = new Ice.InitializationData();
-#if COMPACT
- //
- // When using Ice for .NET Compact Framework, we need to specify
- // the assembly so that Ice can locate classes and exceptions.
- //
- data.properties = Ice.Util.createProperties();
- data.properties.setProperty("Ice.FactoryAssemblies", "client");
-#endif
return app.main(args, data);
}
}
diff --git a/csharp/test/Ice/interceptor/InterceptorI.cs b/csharp/test/Ice/interceptor/InterceptorI.cs
index cd51609bfe1..c25f7896248 100644
--- a/csharp/test/Ice/interceptor/InterceptorI.cs
+++ b/csharp/test/Ice/interceptor/InterceptorI.cs
@@ -8,8 +8,6 @@
// **********************************************************************
using System;
-using System.Collections;
-using System.Diagnostics;
class InterceptorI : Ice.DispatchInterceptor
{
diff --git a/csharp/test/Ice/interceptor/MyObjectI.cs b/csharp/test/Ice/interceptor/MyObjectI.cs
index 6c4327ef6eb..fa40bb98307 100644
--- a/csharp/test/Ice/interceptor/MyObjectI.cs
+++ b/csharp/test/Ice/interceptor/MyObjectI.cs
@@ -76,7 +76,6 @@ class MyObjectI : Test.MyObjectDisp_
//
// AMD
//
-
public override void
amdAdd_async(Test.AMD_MyObject_amdAdd cb, int x, int y, Ice.Current current)
{
diff --git a/csharp/test/Ice/invoke/AllTests.cs b/csharp/test/Ice/invoke/AllTests.cs
index fd1cc0f1e3e..a675caab7c2 100644
--- a/csharp/test/Ice/invoke/AllTests.cs
+++ b/csharp/test/Ice/invoke/AllTests.cs
@@ -7,13 +7,10 @@
//
// **********************************************************************
+
using System;
using System.Diagnostics;
-using System.Threading;
-#if SILVERLIGHT
-using System.Windows.Controls;
-#endif
public class AllTests : TestCommon.TestApp
{
@@ -140,7 +137,7 @@ public class AllTests : TestCommon.TestApp
inS.endEncapsulation();
callback.called();
}
- catch(System.Exception)
+ catch(Exception)
{
test(false);
}
@@ -166,7 +163,7 @@ public class AllTests : TestCommon.TestApp
inS.endEncapsulation();
callback.called();
}
- catch(System.Exception)
+ catch(Exception)
{
test(false);
}
@@ -183,20 +180,8 @@ public class AllTests : TestCommon.TestApp
private CallbackBase callback = new CallbackBase();
}
-#if SILVERLIGHT
- public override Ice.InitializationData initData()
- {
- Ice.InitializationData initData = new Ice.InitializationData();
- initData.properties = Ice.Util.createProperties();
- initData.properties.setProperty("Ice.FactoryAssemblies", "invoke,version=1.0.0.0");
- return initData;
- }
- override
- public void run(Ice.Communicator communicator)
-#else
public static Test.MyClassPrx allTests(Ice.Communicator communicator)
-#endif
{
Ice.ObjectPrx baseProxy = communicator.stringToProxy("test:default -p 12010");
Test.MyClassPrx cl = Test.MyClassPrxHelper.checkedCast(baseProxy);
@@ -259,7 +244,7 @@ public class AllTests : TestCommon.TestApp
{
inS.endEncapsulation();
}
- catch(System.Exception)
+ catch(Exception)
{
test(false);
}
@@ -338,7 +323,7 @@ public class AllTests : TestCommon.TestApp
{
inS.endEncapsulation();
}
- catch(System.Exception)
+ catch(Exception)
{
test(false);
}
@@ -361,11 +346,6 @@ public class AllTests : TestCommon.TestApp
}
WriteLine("ok");
-
-#if SILVERLIGHT
- cl.shutdown();
-#else
return cl;
-#endif
}
}
diff --git a/csharp/test/Ice/invoke/Client.cs b/csharp/test/Ice/invoke/Client.cs
index 90cff8879f7..2d8eedad21a 100644
--- a/csharp/test/Ice/invoke/Client.cs
+++ b/csharp/test/Ice/invoke/Client.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -35,17 +34,10 @@ public class Client
{
Ice.InitializationData initData = new Ice.InitializationData();
initData.properties = Ice.Util.createProperties(ref args);
-#if COMPACT
- //
- // When using Ice for .NET Compact Framework, we need to specify
- // the assembly so that Ice can locate classes and exceptions.
- //
- initData.properties.setProperty("Ice.FactoryAssemblies", "client");
-#endif
communicator = Ice.Util.initialize(ref args, initData);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
Console.Error.WriteLine(ex);
status = 1;
diff --git a/csharp/test/Ice/invoke/Server.cs b/csharp/test/Ice/invoke/Server.cs
index 732e64d3a67..7a86cd8bab7 100644
--- a/csharp/test/Ice/invoke/Server.cs
+++ b/csharp/test/Ice/invoke/Server.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -85,7 +84,7 @@ public class Server
communicator = Ice.Util.initialize(ref args, initData);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
Console.Error.WriteLine(ex);
status = 1;
diff --git a/csharp/test/Ice/location/AllTests.cs b/csharp/test/Ice/location/AllTests.cs
index 6d042d9742a..129737c3073 100644
--- a/csharp/test/Ice/location/AllTests.cs
+++ b/csharp/test/Ice/location/AllTests.cs
@@ -10,26 +10,10 @@
using System;
using Test;
using System.Collections.Generic;
-#if SILVERLIGHT
-using System.Windows.Controls;
-#endif
public class AllTests : TestCommon.TestApp
{
-#if SILVERLIGHT
- public override Ice.InitializationData initData()
- {
- Ice.InitializationData initData = new Ice.InitializationData();
- initData.properties = Ice.Util.createProperties();
- initData.properties.setProperty("Ice.Default.Locator", "locator:default -p 12010");
- return initData;
- }
-
- override
- public void run(Ice.Communicator communicator)
-#else
public static void allTests(Ice.Communicator communicator)
-#endif
{
ServerManagerPrx manager = ServerManagerPrxHelper.checkedCast(
communicator.stringToProxy("ServerManager :default -p 12010"));
@@ -600,8 +584,7 @@ public class AllTests : TestCommon.TestApp
{
}
WriteLine("ok");
-
-#if !SILVERLIGHT
+
Write("testing indirect proxies to collocated objects... ");
Flush();
@@ -630,8 +613,5 @@ public class AllTests : TestCommon.TestApp
Flush();
manager.shutdown();
WriteLine("ok");
-#else
- manager.shutdown();
-#endif
}
}
diff --git a/csharp/test/Ice/location/Client.cs b/csharp/test/Ice/location/Client.cs
index 09001120600..fc333cef871 100644
--- a/csharp/test/Ice/location/Client.cs
+++ b/csharp/test/Ice/location/Client.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -38,9 +37,9 @@ public class Client
communicator = Ice.Util.initialize(ref args, initData);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
@@ -52,7 +51,7 @@ public class Client
}
catch(Ice.LocalException ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
}
diff --git a/csharp/test/Ice/location/Server.cs b/csharp/test/Ice/location/Server.cs
index cdc3d5ed036..279acfb5192 100644
--- a/csharp/test/Ice/location/Server.cs
+++ b/csharp/test/Ice/location/Server.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -66,9 +65,9 @@ public class Server
communicator = Ice.Util.initialize(ref args, initData);
status = run(args, communicator, initData);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
@@ -80,7 +79,7 @@ public class Server
}
catch(Ice.LocalException ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
}
diff --git a/csharp/test/Ice/metrics/AllTests.cs b/csharp/test/Ice/metrics/AllTests.cs
index 7d4a233726e..edd3e6a09d2 100644
--- a/csharp/test/Ice/metrics/AllTests.cs
+++ b/csharp/test/Ice/metrics/AllTests.cs
@@ -7,14 +7,10 @@
//
// **********************************************************************
-using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading;
-#if SILVERLIGHT
-using System.Windows.Controls;
-#endif
using Test;
public class AllTests : TestCommon.TestApp
@@ -34,7 +30,7 @@ public class AllTests : TestCommon.TestApp
// to get an accurate sentBytes metric. The sentBytes metric is updated before the response
// to the operation is sent and getMetricsView can be dispatched before the metric is really
// updated.
- System.Threading.Thread.Sleep(100);
+ Thread.Sleep(100);
s = (IceMX.ConnectionMetrics)metrics.getMetricsView("View", out timestamp)["Connection"][0];
}
return s;
@@ -58,7 +54,7 @@ public class AllTests : TestCommon.TestApp
lock(this)
{
_wait = false;
- System.Threading.Monitor.Pulse(this);
+ Monitor.Pulse(this);
}
}
@@ -73,7 +69,7 @@ public class AllTests : TestCommon.TestApp
{
while(_wait)
{
- System.Threading.Monitor.Wait(this);
+ Monitor.Wait(this);
}
_wait = true;
}
@@ -142,7 +138,7 @@ public class AllTests : TestCommon.TestApp
{
while(!_updated)
{
- System.Threading.Monitor.Wait(this);
+ Monitor.Wait(this);
}
}
@@ -164,7 +160,7 @@ public class AllTests : TestCommon.TestApp
lock(this)
{
_updated = true;
- System.Threading.Monitor.Pulse(this);
+ Monitor.Pulse(this);
}
}
@@ -193,7 +189,7 @@ public class AllTests : TestCommon.TestApp
{
break;
}
- System.Threading.Thread.Sleep(50);
+ Thread.Sleep(50);
}
}
@@ -204,11 +200,7 @@ public class AllTests : TestCommon.TestApp
string map,
string attr,
string value,
-#if COMPACT
- Ice.VoidAction func)
-#else
System.Action func)
-#endif
{
Dictionary<string, string> dict = new Dictionary<string, string>();
dict.Add("IceMX.Metrics.View.Map." + map + ".GroupBy", attr);
@@ -375,11 +367,7 @@ public class AllTests : TestCommon.TestApp
return m;
}
-#if SILVERLIGHT
- override public void run(Ice.Communicator communicator, CommunicatorObserverI obsv)
-#else
public static MetricsPrx allTests(Ice.Communicator communicator, CommunicatorObserverI obsv)
-#endif
{
MetricsPrx metrics = MetricsPrxHelper.checkedCast(communicator.stringToProxy("metrics:default -p 12010"));
bool collocated = metrics.ice_getConnection() == null;
@@ -598,7 +586,7 @@ public class AllTests : TestCommon.TestApp
{
break;
}
- System.Threading.Thread.Sleep(10);
+ Thread.Sleep(10);
}
test(cm1.failures == 2 && sm1.failures >= 2);
@@ -673,11 +661,7 @@ public class AllTests : TestCommon.TestApp
checkFailure(clientMetrics, "ConnectionEstablishment", m1.id, "::Ice::ConnectTimeoutException", 2);
-#if COMPACT
- Ice.VoidAction c = () => { connect(metrics); };
-#else
System.Action c = () => { connect(metrics); };
-#endif
testAttribute(clientMetrics, clientProps, update, "ConnectionEstablishment", "parent", "Communicator", c);
testAttribute(clientMetrics, clientProps, update, "ConnectionEstablishment", "id", "127.0.0.1:12010", c);
testAttribute(clientMetrics, clientProps, update, "ConnectionEstablishment", "endpoint",
@@ -837,12 +821,7 @@ public class AllTests : TestCommon.TestApp
checkFailure(serverMetrics, "Dispatch", dm1.id, "System.ArgumentOutOfRangeException", 1);
test(dm1.size == 41 && dm1.replySize > 7); // Reply contains the exception stack depending on the OS.
-#if COMPACT
- Ice.VoidAction op = () => { invokeOp(metrics); };
-#else
System.Action op = () => { invokeOp(metrics); };
-#endif
-
testAttribute(serverMetrics, serverProps, update, "Dispatch", "parent", "TestAdapter", op);
testAttribute(serverMetrics, serverProps, update, "Dispatch", "id", "metrics [op]", op);
@@ -1225,11 +1204,6 @@ public class AllTests : TestCommon.TestApp
test(obsv.invocationObserver.userExceptionCount > 0);
WriteLine("ok");
-
-#if SILVERLIGHT
- metrics.shutdown();
-#else
return metrics;
-#endif
}
}
diff --git a/csharp/test/Ice/metrics/Client.cs b/csharp/test/Ice/metrics/Client.cs
index 47f84a300e9..eed092ffb08 100644
--- a/csharp/test/Ice/metrics/Client.cs
+++ b/csharp/test/Ice/metrics/Client.cs
@@ -30,11 +30,7 @@ public class Client
{
int status = 0;
Ice.Communicator communicator = null;
-
-#if !COMPACT && !UNITY
Debug.Listeners.Add(new ConsoleTraceListener());
-#endif
-
try
{
Ice.InitializationData initData = new Ice.InitializationData();
@@ -46,18 +42,12 @@ public class Client
initData.properties.setProperty("Ice.Warn.Connections", "0");
initData.properties.setProperty("Ice.MessageSizeMax", "50000");
initData.properties.setProperty("Ice.Default.Host", "127.0.0.1");
-#if COMPACT
- //
- // When using Ice for .NET Compact Framework, we need to specify
- // the assembly so that Ice can locate classes and exceptions.
- //
- initData.properties.setProperty("Ice.FactoryAssemblies", "client");
-#endif
+
initData.observer = _observer;
communicator = Ice.Util.initialize(ref args, initData);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
Console.Error.WriteLine(ex);
status = 1;
diff --git a/csharp/test/Ice/metrics/Collocated.cs b/csharp/test/Ice/metrics/Collocated.cs
index d7ea036c054..a89d462bf07 100644
--- a/csharp/test/Ice/metrics/Collocated.cs
+++ b/csharp/test/Ice/metrics/Collocated.cs
@@ -39,11 +39,7 @@ public class Collocated
{
int status = 0;
Ice.Communicator communicator = null;
-
-#if !COMPACT && !UNITY
Debug.Listeners.Add(new ConsoleTraceListener());
-#endif
-
try
{
Ice.InitializationData initData = new Ice.InitializationData();
@@ -57,18 +53,11 @@ public class Collocated
initData.properties.setProperty("Ice.Warn.Dispatch", "0");
initData.properties.setProperty("Ice.MessageSizeMax", "50000");
initData.properties.setProperty("Ice.Default.Host", "127.0.0.1");
-#if COMPACT
- //
- // When using Ice for .NET Compact Framework, we need to specify
- // the assembly so that Ice can locate classes and exceptions.
- //
- initData.properties.setProperty("Ice.FactoryAssemblies", "collocated");
-#endif
initData.observer = _observer;
communicator = Ice.Util.initialize(ref args, initData);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
Console.Error.WriteLine(ex);
status = 1;
diff --git a/csharp/test/Ice/metrics/InstrumentationI.cs b/csharp/test/Ice/metrics/InstrumentationI.cs
index 41d4c855ea2..9f75658de6b 100644
--- a/csharp/test/Ice/metrics/InstrumentationI.cs
+++ b/csharp/test/Ice/metrics/InstrumentationI.cs
@@ -11,8 +11,6 @@ using System;
using System.Collections.Generic;
using System.Diagnostics;
-using Test;
-
public class ObserverI : Ice.Instrumentation.Observer
{
virtual public void
diff --git a/csharp/test/Ice/metrics/MetricsAMDI.cs b/csharp/test/Ice/metrics/MetricsAMDI.cs
index 0ab9d15336b..368e3fc7b4b 100644
--- a/csharp/test/Ice/metrics/MetricsAMDI.cs
+++ b/csharp/test/Ice/metrics/MetricsAMDI.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Collections.Generic;
using Test;
public sealed class ControllerI : ControllerDisp_
diff --git a/csharp/test/Ice/metrics/Server.cs b/csharp/test/Ice/metrics/Server.cs
index c6535448e92..e969f4b8cfa 100644
--- a/csharp/test/Ice/metrics/Server.cs
+++ b/csharp/test/Ice/metrics/Server.cs
@@ -38,11 +38,7 @@ public class Server
{
int status = 0;
Ice.Communicator communicator = null;
-
-#if !COMPACT && !UNITY
Debug.Listeners.Add(new ConsoleTraceListener());
-#endif
-
try
{
Ice.InitializationData initData = new Ice.InitializationData();
@@ -58,7 +54,7 @@ public class Server
communicator = Ice.Util.initialize(ref args, initData);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
Console.Error.WriteLine(ex);
status = 1;
diff --git a/csharp/test/Ice/networkProxy/AllTests.cs b/csharp/test/Ice/networkProxy/AllTests.cs
index b840aab1ed6..16f79c7e9b2 100644
--- a/csharp/test/Ice/networkProxy/AllTests.cs
+++ b/csharp/test/Ice/networkProxy/AllTests.cs
@@ -7,29 +7,9 @@
//
// **********************************************************************
-using System;
-using System.Diagnostics;
-using System.Threading;
-
-#if SILVERLIGHT
-using System.Windows.Controls;
-#endif
-
public class AllTests : TestCommon.TestApp
{
-#if SILVERLIGHT
- public override Ice.InitializationData initData()
- {
- Ice.InitializationData initData = new Ice.InitializationData();
- initData.properties = Ice.Util.createProperties();
- return initData;
- }
-
- override
- public void run(Ice.Communicator communicator)
-#else
public static void allTests(Ice.Communicator communicator)
-#endif
{
string sref = "test:default -p 12010";
Ice.ObjectPrx obj = communicator.stringToProxy(sref);
diff --git a/csharp/test/Ice/networkProxy/Client.cs b/csharp/test/Ice/networkProxy/Client.cs
index 186dd0bbe3d..b5404ab14b8 100644
--- a/csharp/test/Ice/networkProxy/Client.cs
+++ b/csharp/test/Ice/networkProxy/Client.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -37,7 +36,7 @@ public class Client
communicator = Ice.Util.initialize(ref args, initData);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
Console.Error.WriteLine(ex);
status = 1;
diff --git a/csharp/test/Ice/networkProxy/Server.cs b/csharp/test/Ice/networkProxy/Server.cs
index f4d03f05490..ca2511d8e43 100644
--- a/csharp/test/Ice/networkProxy/Server.cs
+++ b/csharp/test/Ice/networkProxy/Server.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -50,7 +49,7 @@ public class Server
communicator = Ice.Util.initialize(ref args, initData);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
Console.Error.WriteLine(ex);
status = 1;
diff --git a/csharp/test/Ice/objects/AllTests.cs b/csharp/test/Ice/objects/AllTests.cs
index 343d94d9a9e..60202d33e9b 100644
--- a/csharp/test/Ice/objects/AllTests.cs
+++ b/csharp/test/Ice/objects/AllTests.cs
@@ -11,10 +11,6 @@ using System;
using System.Diagnostics;
using Test;
-#if SILVERLIGHT
-using System.Windows.Controls;
-#endif
-
public class AllTests : TestCommon.TestApp
{
public static Ice.Object MyValueFactory(string type)
@@ -81,20 +77,7 @@ public class AllTests : TestCommon.TestApp
private bool _destroyed;
}
-#if SILVERLIGHT
- public override Ice.InitializationData initData()
- {
- Ice.InitializationData initData = new Ice.InitializationData();
- initData.properties = Ice.Util.createProperties();
- initData.properties.setProperty("Ice.FactoryAssemblies", "objects,version=1.0.0.0");
- return initData;
- }
-
- override
- public void run(Ice.Communicator communicator)
-#else
public static InitialPrx allTests(Ice.Communicator communicator)
-#endif
{
communicator.getValueFactoryManager().add(MyValueFactory, "::Test::B");
communicator.getValueFactoryManager().add(MyValueFactory, "::Test::C");
@@ -339,10 +322,6 @@ public class AllTests : TestCommon.TestApp
WriteLine("ok");
#pragma warning restore 612, 618
-#if SILVERLIGHT
- initial.shutdown();
-#else
return initial;
-#endif
}
}
diff --git a/csharp/test/Ice/objects/Client.cs b/csharp/test/Ice/objects/Client.cs
index 6251c9ec06c..805670012c6 100644
--- a/csharp/test/Ice/objects/Client.cs
+++ b/csharp/test/Ice/objects/Client.cs
@@ -9,7 +9,6 @@
using Test;
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -35,20 +34,12 @@ public class Client
try
{
Ice.InitializationData data = new Ice.InitializationData();
-#if COMPACT
- //
- // When using Ice for .NET Compact Framework, we need to specify
- // the assembly so that Ice can locate classes and exceptions.
- //
- data.properties = Ice.Util.createProperties();
- data.properties.setProperty("Ice.FactoryAssemblies", "client");
-#endif
communicator = Ice.Util.initialize(ref args, data);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
@@ -60,7 +51,7 @@ public class Client
}
catch(Ice.LocalException ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
}
diff --git a/csharp/test/Ice/objects/Collocated.cs b/csharp/test/Ice/objects/Collocated.cs
index 82bc3dc8064..d401a85e47f 100644
--- a/csharp/test/Ice/objects/Collocated.cs
+++ b/csharp/test/Ice/objects/Collocated.cs
@@ -9,7 +9,6 @@
using Test;
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -42,21 +41,12 @@ public class Client
try
{
Ice.InitializationData data = new Ice.InitializationData();
-#if COMPACT
- //
- // When using Ice for .NET Compact Framework, we need to specify
- // the assembly so that Ice can locate classes and exceptions.
- //
- data.properties = Ice.Util.createProperties();
- data.properties.setProperty("Ice.FactoryAssemblies", "collocated");
-#endif
-
communicator = Ice.Util.initialize(ref args, data);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
- System.Console.WriteLine(ex);
+ Console.WriteLine(ex);
status = 1;
}
@@ -68,7 +58,7 @@ public class Client
}
catch(Ice.LocalException ex)
{
- System.Console.WriteLine(ex);
+ Console.WriteLine(ex);
status = 1;
}
}
diff --git a/csharp/test/Ice/objects/Server.cs b/csharp/test/Ice/objects/Server.cs
index 0376c3eb848..494f9c300d1 100644
--- a/csharp/test/Ice/objects/Server.cs
+++ b/csharp/test/Ice/objects/Server.cs
@@ -62,20 +62,12 @@ public class Server
try
{
Ice.InitializationData data = new Ice.InitializationData();
-#if COMPACT
- //
- // When using Ice for .NET Compact Framework, we need to specify
- // the assembly so that Ice can locate classes and exceptions.
- //
- data.properties = Ice.Util.createProperties();
- data.properties.setProperty("Ice.FactoryAssemblies", "server");
-#endif
communicator = Ice.Util.initialize(ref args, data);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
@@ -87,7 +79,7 @@ public class Server
}
catch(Ice.LocalException ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
}
diff --git a/csharp/test/Ice/operations/AllTests.cs b/csharp/test/Ice/operations/AllTests.cs
index f43085870f8..4854f467da5 100644
--- a/csharp/test/Ice/operations/AllTests.cs
+++ b/csharp/test/Ice/operations/AllTests.cs
@@ -7,35 +7,9 @@
//
// **********************************************************************
-using System;
-
-#if SILVERLIGHT
-using System.Windows.Controls;
-#endif
-
public class AllTests : TestCommon.TestApp
{
-#if SILVERLIGHT
- public override Ice.InitializationData initData()
- {
- //
- // In this test, we need at least two threads in the
- // client side thread pool for nested AMI.
- //
- Ice.InitializationData initData = new Ice.InitializationData();
- initData.properties = Ice.Util.createProperties();
- initData.properties.setProperty("Ice.ThreadPool.Client.Size", "2");
- initData.properties.setProperty("Ice.ThreadPool.Client.SizeWarn", "0");
-
- initData.properties.setProperty("Ice.BatchAutoFlushSize", "100");
- return initData;
- }
-
- override
- public void run(Ice.Communicator communicator)
-#else
public static Test.MyClassPrx allTests(Ice.Communicator communicator)
-#endif
{
Flush();
string rf = "test:default -p 12010";
@@ -77,10 +51,6 @@ public class AllTests : TestCommon.TestApp
BatchOnewaysAMI.batchOneways(cl);
BatchOnewaysAMI.batchOneways(derivedProxy);
WriteLine("ok");
-#if SILVERLIGHT
- cl.shutdown();
-#else
return cl;
-#endif
}
}
diff --git a/csharp/test/Ice/operations/BatchOneways.cs b/csharp/test/Ice/operations/BatchOneways.cs
index 42cf39425db..aae9fedbe09 100644
--- a/csharp/test/Ice/operations/BatchOneways.cs
+++ b/csharp/test/Ice/operations/BatchOneways.cs
@@ -15,7 +15,7 @@ class BatchOneways
{
if(!b)
{
- throw new System.Exception();
+ throw new Exception();
}
}
diff --git a/csharp/test/Ice/operations/BatchOnewaysAMI.cs b/csharp/test/Ice/operations/BatchOnewaysAMI.cs
index 4e8204827de..87615c540ae 100644
--- a/csharp/test/Ice/operations/BatchOnewaysAMI.cs
+++ b/csharp/test/Ice/operations/BatchOnewaysAMI.cs
@@ -16,7 +16,7 @@ class BatchOnewaysAMI
{
if(!b)
{
- throw new System.Exception();
+ throw new Exception();
}
}
diff --git a/csharp/test/Ice/operations/Client.cs b/csharp/test/Ice/operations/Client.cs
index 85dc1cae354..8fd188fbefe 100644
--- a/csharp/test/Ice/operations/Client.cs
+++ b/csharp/test/Ice/operations/Client.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -59,7 +58,7 @@ public class Client
communicator = Ice.Util.initialize(ref args, initData);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
Console.Error.WriteLine(ex);
status = 1;
diff --git a/csharp/test/Ice/operations/Collocated.cs b/csharp/test/Ice/operations/Collocated.cs
index 3482118f8da..d4c195517b4 100644
--- a/csharp/test/Ice/operations/Collocated.cs
+++ b/csharp/test/Ice/operations/Collocated.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -29,7 +28,7 @@ public class Collocated
if(prx.ice_getConnection() != null)
{
- throw new System.Exception();
+ throw new Exception();
}
AllTests.allTests(communicator);
@@ -60,7 +59,7 @@ public class Collocated
communicator = Ice.Util.initialize(ref args, initData);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
Console.Error.WriteLine(ex);
status = 1;
diff --git a/csharp/test/Ice/operations/MyDerivedClassAMDI.cs b/csharp/test/Ice/operations/MyDerivedClassAMDI.cs
index d25fe1a15e6..299385cadaf 100644
--- a/csharp/test/Ice/operations/MyDerivedClassAMDI.cs
+++ b/csharp/test/Ice/operations/MyDerivedClassAMDI.cs
@@ -57,7 +57,6 @@ public sealed class MyDerivedClassI : Test.MyDerivedClass
//
// Override the Object "pseudo" operations to verify the operation mode.
//
-
public override bool ice_isA(String id, Ice.Current current)
{
test(current.mode == Ice.OperationMode.Nonmutating);
@@ -96,7 +95,7 @@ public sealed class MyDerivedClassI : Test.MyDerivedClass
public override void delay_async(Test.AMD_MyClass_delay cb, int ms, Ice.Current current)
{
- System.Threading.Thread.Sleep(ms);
+ Thread.Sleep(ms);
cb.ice_response();
}
diff --git a/csharp/test/Ice/operations/MyDerivedClassAMDTieI.cs b/csharp/test/Ice/operations/MyDerivedClassAMDTieI.cs
index b1efecbbc2b..28fde5adf6e 100644
--- a/csharp/test/Ice/operations/MyDerivedClassAMDTieI.cs
+++ b/csharp/test/Ice/operations/MyDerivedClassAMDTieI.cs
@@ -75,7 +75,7 @@ public sealed class MyDerivedClassTieI : Test.MyDerivedClassOperations_
public void delay_async(Test.AMD_MyClass_delay cb, int ms, Ice.Current current)
{
- System.Threading.Thread.Sleep(ms);
+ Thread.Sleep(ms);
cb.ice_response();
}
diff --git a/csharp/test/Ice/operations/OnewaysAMI.cs b/csharp/test/Ice/operations/OnewaysAMI.cs
index 0f40db4649f..d5ad3ecc1fa 100644
--- a/csharp/test/Ice/operations/OnewaysAMI.cs
+++ b/csharp/test/Ice/operations/OnewaysAMI.cs
@@ -10,7 +10,6 @@
using System;
using System.Diagnostics;
using System.Threading;
-using System.Collections.Generic;
public class OnewaysAMI
{
@@ -18,7 +17,7 @@ public class OnewaysAMI
{
if(!b)
{
- throw new System.SystemException();
+ throw new SystemException();
}
}
@@ -35,7 +34,7 @@ public class OnewaysAMI
{
while(!_called)
{
- System.Threading.Monitor.Wait(this);
+ Monitor.Wait(this);
}
_called = false;
}
@@ -47,7 +46,7 @@ public class OnewaysAMI
{
Debug.Assert(!_called);
_called = true;
- System.Threading.Monitor.Pulse(this);
+ Monitor.Pulse(this);
}
}
@@ -103,7 +102,7 @@ public class OnewaysAMI
p.begin_ice_isA("::Test::MyClass");
test(false);
}
- catch(System.ArgumentException)
+ catch(ArgumentException)
{
}
}
@@ -114,7 +113,7 @@ public class OnewaysAMI
p.begin_ice_id();
test(false);
}
- catch(System.ArgumentException)
+ catch(ArgumentException)
{
}
}
@@ -125,7 +124,7 @@ public class OnewaysAMI
p.begin_ice_ids();
test(false);
}
- catch(System.ArgumentException)
+ catch(ArgumentException)
{
}
}
@@ -199,7 +198,7 @@ public class OnewaysAMI
p.begin_opByte((byte)0xff, (byte)0x0f);
test(false);
}
- catch(System.ArgumentException)
+ catch(ArgumentException)
{
}
}
diff --git a/csharp/test/Ice/operations/Server.cs b/csharp/test/Ice/operations/Server.cs
index 34127bf1415..b59c2a4f9e2 100644
--- a/csharp/test/Ice/operations/Server.cs
+++ b/csharp/test/Ice/operations/Server.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -53,7 +52,7 @@ public class Server
communicator = Ice.Util.initialize(ref args, initData);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
Console.Error.WriteLine(ex);
status = 1;
diff --git a/csharp/test/Ice/operations/Twoways.cs b/csharp/test/Ice/operations/Twoways.cs
index 25324cd2ca7..968fc07a835 100644
--- a/csharp/test/Ice/operations/Twoways.cs
+++ b/csharp/test/Ice/operations/Twoways.cs
@@ -17,7 +17,7 @@ class Twoways
{
if(!b)
{
- throw new System.Exception();
+ throw new Exception();
}
}
@@ -1478,7 +1478,7 @@ class Twoways
{
combined.Add(e.Key, e.Value);
}
- catch(System.ArgumentException)
+ catch(ArgumentException)
{
// Ignore.
}
diff --git a/csharp/test/Ice/operations/TwowaysAMI.cs b/csharp/test/Ice/operations/TwowaysAMI.cs
index 3623b00c1ac..22a0016d001 100644
--- a/csharp/test/Ice/operations/TwowaysAMI.cs
+++ b/csharp/test/Ice/operations/TwowaysAMI.cs
@@ -18,7 +18,7 @@ public class TwowaysAMI
{
if(!b)
{
- throw new System.SystemException();
+ throw new SystemException();
}
}
@@ -35,7 +35,7 @@ public class TwowaysAMI
{
while(!_called)
{
- System.Threading.Monitor.Wait(this);
+ Monitor.Wait(this);
}
_called = false;
}
@@ -47,7 +47,7 @@ public class TwowaysAMI
{
Debug.Assert(!_called);
_called = true;
- System.Threading.Monitor.Pulse(this);
+ Monitor.Pulse(this);
}
}
diff --git a/csharp/test/Ice/optional/AllTests.cs b/csharp/test/Ice/optional/AllTests.cs
index aaedca479e9..a12ee7a7f37 100644
--- a/csharp/test/Ice/optional/AllTests.cs
+++ b/csharp/test/Ice/optional/AllTests.cs
@@ -10,26 +10,9 @@
using System;
using System.Collections.Generic;
-#if SILVERLIGHT
-using System.Windows.Controls;
-#endif
-
public class AllTests : TestCommon.TestApp
{
-#if SILVERLIGHT
- public override Ice.InitializationData initData()
- {
- Ice.InitializationData initData = new Ice.InitializationData();
- initData.properties = Ice.Util.createProperties();
- initData.properties.setProperty("Ice.FactoryAssemblies", "optional,version=1.0.0.0");
- return initData;
- }
-
- override
- public void run(Ice.Communicator communicator)
-#else
public static Test.InitialPrx allTests(Ice.Communicator communicator)
-#endif
{
FactoryI factory = new FactoryI();
communicator.getValueFactoryManager().add(factory.create, "");
@@ -105,10 +88,7 @@ public class AllTests : TestCommon.TestApp
mo1.ioopd.Value.Add(5, Test.OneOptionalPrxHelper.uncheckedCast(communicator.stringToProxy("test")));
mo1.bos = new bool[] { false, true, false };
-
-#if !COMPACT && !SILVERLIGHT
mo1.ser = new Test.SerializableClass(56);
-#endif
test(mo1.a.Value == (byte)15);
test(mo1.b.Value);
@@ -142,10 +122,7 @@ public class AllTests : TestCommon.TestApp
test(mo1.ioopd.Value[5].Equals(Test.OneOptionalPrxHelper.uncheckedCast(communicator.stringToProxy("test"))));
test(ArraysEqual(mo1.bos.Value, new bool[] { false, true, false }));
-
-#if !COMPACT && !SILVERLIGHT
test(mo1.ser.Value.Equals(new Test.SerializableClass(56)));
-#endif
WriteLine("ok");
@@ -192,7 +169,6 @@ public class AllTests : TestCommon.TestApp
test(!mo4.bos.HasValue);
-#if !SILVERLIGHT
test(!mo4.ser.HasValue);
bool supportsCsharpSerializable = initial.supportsCsharpSerializable();
@@ -200,7 +176,6 @@ public class AllTests : TestCommon.TestApp
{
mo1.ser = Ice.Util.None;
}
-#endif
Test.MultiOptional mo5 = (Test.MultiOptional)initial.pingPong(mo1);
test(mo5.a.Value == mo1.a.Value);
@@ -234,13 +209,10 @@ public class AllTests : TestCommon.TestApp
test(mo5.ioopd.Value[5].Equals(Test.OneOptionalPrxHelper.uncheckedCast(communicator.stringToProxy("test"))));
test(ArraysEqual(mo5.bos.Value, new bool[] { false, true, false }));
-
-#if !COMPACT && !SILVERLIGHT
if(supportsCsharpSerializable)
{
test(mo5.ser.Value.Equals(new Test.SerializableClass(56)));
}
-#endif
// Clear the first half of the optional members
Test.MultiOptional mo6 = new Test.MultiOptional();
@@ -292,10 +264,7 @@ public class AllTests : TestCommon.TestApp
test(!mo7.ioopd.HasValue);
test(ArraysEqual(mo7.bos.Value, new bool[] { false, true, false }));
-
-#if !SILVERLIGHT
test(!mo7.ser.HasValue);
-#endif
// Clear the second half of the optional members
Test.MultiOptional mo8 = new Test.MultiOptional();
@@ -316,13 +285,10 @@ public class AllTests : TestCommon.TestApp
mo8.ied = mo5.ied;
mo8.ivsd = mo5.ivsd;
mo8.ioopd = mo5.ioopd;
-
-#if !COMPACT && !SILVERLIGHT
if(supportsCsharpSerializable)
{
mo8.ser = new Test.SerializableClass(56);
}
-#endif
Test.MultiOptional mo9 = (Test.MultiOptional)initial.pingPong(mo8);
test(mo9.a.Equals(mo1.a));
@@ -357,13 +323,10 @@ public class AllTests : TestCommon.TestApp
test(mo9.ioopd.Value[5].Equals(Test.OneOptionalPrxHelper.uncheckedCast(communicator.stringToProxy("test"))));
test(!mo9.bos.HasValue);
-
-#if !COMPACT && !SILVERLIGHT
if(supportsCsharpSerializable)
{
test(mo9.ser.Value.Equals(new Test.SerializableClass(56)));
}
-#endif
{
Test.OptionalWithCustom owc1 = new Test.OptionalWithCustom();
@@ -1950,7 +1913,6 @@ public class AllTests : TestCommon.TestApp
@in.endEncapsulation();
}
-#if !COMPACT && !SILVERLIGHT
if(supportsCsharpSerializable)
{
Ice.Optional<Test.SerializableClass> p1 = new Ice.Optional<Test.SerializableClass>();
@@ -1996,7 +1958,6 @@ public class AllTests : TestCommon.TestApp
@in.startEncapsulation();
@in.endEncapsulation();
}
-#endif
{
Ice.Optional<Dictionary<int, int>> p1 = new Ice.Optional<Dictionary<int, int>>();
@@ -2240,12 +2201,7 @@ public class AllTests : TestCommon.TestApp
}
}
WriteLine("ok");
-
-#if SILVERLIGHT
- initial.shutdown();
-#else
return initial;
-#endif
}
internal static bool ArraysEqual<T>(T[] a1, T[] a2)
diff --git a/csharp/test/Ice/optional/Client.cs b/csharp/test/Ice/optional/Client.cs
index 9fa2fd09390..dbf94133fb2 100644
--- a/csharp/test/Ice/optional/Client.cs
+++ b/csharp/test/Ice/optional/Client.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -36,14 +35,6 @@ public class Client
try
{
Ice.InitializationData data = new Ice.InitializationData();
-#if COMPACT
- //
- // When using Ice for .NET Compact Framework, we need to specify
- // the assembly so that Ice can locate classes and exceptions.
- //
- data.properties = Ice.Util.createProperties();
- data.properties.setProperty("Ice.FactoryAssemblies", "client");
-#endif
communicator = Ice.Util.initialize(ref args, data);
status = run(args, communicator);
}
diff --git a/csharp/test/Ice/optional/SerializableClass.cs b/csharp/test/Ice/optional/SerializableClass.cs
index f8b2bae65df..541030b4a00 100644
--- a/csharp/test/Ice/optional/SerializableClass.cs
+++ b/csharp/test/Ice/optional/SerializableClass.cs
@@ -7,8 +7,6 @@
//
// **********************************************************************
-#if !SILVERLIGHT
-
using System;
[assembly: CLSCompliant(true)]
@@ -43,5 +41,3 @@ public class SerializableClass
}
}
-
-#endif
diff --git a/csharp/test/Ice/optional/Server.cs b/csharp/test/Ice/optional/Server.cs
index e8ddcd05f75..b4900b7e07a 100644
--- a/csharp/test/Ice/optional/Server.cs
+++ b/csharp/test/Ice/optional/Server.cs
@@ -38,18 +38,10 @@ public class Server
try
{
Ice.InitializationData data = new Ice.InitializationData();
-#if COMPACT
- //
- // When using Ice for .NET Compact Framework, we need to specify
- // the assembly so that Ice can locate classes and exceptions.
- //
- data.properties = Ice.Util.createProperties();
- data.properties.setProperty("Ice.FactoryAssemblies", "server");
-#endif
communicator = Ice.Util.initialize(ref args, data);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
Console.Error.WriteLine(ex);
status = 1;
diff --git a/csharp/test/Ice/optional/ServerAMD.cs b/csharp/test/Ice/optional/ServerAMD.cs
index 7fddcf2a226..d23b4060462 100644
--- a/csharp/test/Ice/optional/ServerAMD.cs
+++ b/csharp/test/Ice/optional/ServerAMD.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -38,18 +37,10 @@ public class Server
try
{
Ice.InitializationData data = new Ice.InitializationData();
-#if COMPACT
- //
- // When using Ice for .NET Compact Framework, we need to specify
- // the assembly so that Ice can locate classes and exceptions.
- //
- data.properties = Ice.Util.createProperties();
- data.properties.setProperty("Ice.FactoryAssemblies", "serveramd");
-#endif
communicator = Ice.Util.initialize(ref args, data);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
Console.Error.WriteLine(ex);
status = 1;
diff --git a/csharp/test/Ice/optional/TestAMDI.cs b/csharp/test/Ice/optional/TestAMDI.cs
index 05475175e1e..ee4d1711bd5 100644
--- a/csharp/test/Ice/optional/TestAMDI.cs
+++ b/csharp/test/Ice/optional/TestAMDI.cs
@@ -208,21 +208,12 @@ public class InitialI : Test.Initial
cb.ice_response(p1, p1);
}
-#if COMPACT || SILVERLIGHT
- public override void opSerializable_async(Test.AMD_Initial_opSerializable cb,
- Ice.Optional<byte[]> p1,
- Ice.Current current)
- {
- cb.ice_response(p1, p1);
- }
-#else
public override void opSerializable_async(Test.AMD_Initial_opSerializable cb,
Ice.Optional<Test.SerializableClass> p1,
Ice.Current current)
{
cb.ice_response(p1, p1);
}
-#endif
public override void opIntIntDict_async(Test.AMD_Initial_opIntIntDict cb, Ice.Optional<Dictionary<int, int>> p1,
Ice.Current current)
@@ -279,11 +270,7 @@ public class InitialI : Test.Initial
public override void supportsCsharpSerializable_async(Test.AMD_Initial_supportsCsharpSerializable cb,
Ice.Current current)
{
-#if COMPACT || SILVERLIGHT
- cb.ice_response(false);
-#else
cb.ice_response(true);
-#endif
}
public override void supportsCppStringView_async(Test.AMD_Initial_supportsCppStringView cb,
diff --git a/csharp/test/Ice/optional/TestI.cs b/csharp/test/Ice/optional/TestI.cs
index 13b3d59e8e1..f78033db60a 100644
--- a/csharp/test/Ice/optional/TestI.cs
+++ b/csharp/test/Ice/optional/TestI.cs
@@ -246,14 +246,6 @@ public class InitialI : Test.Initial
return p1;
}
-#if COMPACT || SILVERLIGHT
- public override Ice.Optional<byte[]> opSerializable(Ice.Optional<byte[]> p1, out Ice.Optional<byte[]> p3,
- Ice.Current current)
- {
- p3 = p1;
- return p1;
- }
-#else
public override Ice.Optional<Test.SerializableClass> opSerializable(Ice.Optional<Test.SerializableClass> p1,
out Ice.Optional<Test.SerializableClass> p3,
Ice.Current current)
@@ -261,7 +253,6 @@ public class InitialI : Test.Initial
p3 = p1;
return p1;
}
-#endif
public override Ice.Optional<Dictionary<int, int>> opIntIntDict(Ice.Optional<Dictionary<int, int>> p1,
out Ice.Optional<Dictionary<int, int>> p3,
@@ -313,11 +304,7 @@ public class InitialI : Test.Initial
public override bool supportsCsharpSerializable(Ice.Current current)
{
-#if COMPACT || SILVERLIGHT
- return false;
-#else
return true;
-#endif
}
public override bool supportsCppStringView(Ice.Current current)
diff --git a/csharp/test/Ice/plugin/BasePlugin.cs b/csharp/test/Ice/plugin/BasePlugin.cs
index 9ce2ee90f34..08c20561d14 100644
--- a/csharp/test/Ice/plugin/BasePlugin.cs
+++ b/csharp/test/Ice/plugin/BasePlugin.cs
@@ -7,8 +7,6 @@
//
// **********************************************************************
-using Ice;
-
public abstract class BasePlugin : Ice.Plugin
{
public BasePlugin(Ice.Communicator communicator)
diff --git a/csharp/test/Ice/plugin/BasePluginFail.cs b/csharp/test/Ice/plugin/BasePluginFail.cs
index 68cd830ca25..9406a6ea870 100644
--- a/csharp/test/Ice/plugin/BasePluginFail.cs
+++ b/csharp/test/Ice/plugin/BasePluginFail.cs
@@ -7,8 +7,6 @@
//
// **********************************************************************
-using Ice;
-
public abstract class BasePluginFail : Ice.Plugin
{
public BasePluginFail(Ice.Communicator communicator)
diff --git a/csharp/test/Ice/plugin/Client.cs b/csharp/test/Ice/plugin/Client.cs
index 0f58da23789..7e281d967bb 100644
--- a/csharp/test/Ice/plugin/Client.cs
+++ b/csharp/test/Ice/plugin/Client.cs
@@ -8,9 +8,7 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
-using Ice;
[assembly: CLSCompliant(true)]
@@ -24,7 +22,7 @@ public class Client
{
if(!b)
{
- throw new System.Exception();
+ throw new Exception();
}
}
diff --git a/csharp/test/Ice/properties/Client.cs b/csharp/test/Ice/properties/Client.cs
index 6c99535b9f4..1ec20a77e75 100644
--- a/csharp/test/Ice/properties/Client.cs
+++ b/csharp/test/Ice/properties/Client.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -23,7 +22,7 @@ public class Client
{
if(!b)
{
- throw new System.Exception();
+ throw new Exception();
}
}
@@ -62,9 +61,9 @@ public class Client
c.main(args, "./config/中国_client.config");
Console.Out.WriteLine("ok");
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
@@ -82,9 +81,9 @@ public class Client
test(properties.getProperty("Config3").Equals("Config3"));
Console.Out.WriteLine("ok");
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
@@ -124,9 +123,9 @@ public class Client
}
Console.Out.WriteLine("ok");
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
diff --git a/csharp/test/Ice/proxy/AllTests.cs b/csharp/test/Ice/proxy/AllTests.cs
index 5179773cb04..0c4764650bd 100644
--- a/csharp/test/Ice/proxy/AllTests.cs
+++ b/csharp/test/Ice/proxy/AllTests.cs
@@ -9,20 +9,10 @@
using System;
using System.Collections.Generic;
-using System.Diagnostics;
-
-#if SILVERLIGHT
-using System.Windows.Controls;
-#endif
public class AllTests : TestCommon.TestApp
{
-#if SILVERLIGHT
- override
- public void run(Ice.Communicator communicator)
-#else
public static Test.MyClassPrx allTests(Ice.Communicator communicator)
-#endif
{
Write("testing stringToProxy... ");
Flush();
@@ -295,7 +285,7 @@ public class AllTests : TestCommon.TestApp
}
catch(Exception ex)
{
- System.Console.WriteLine(ex.ToString());
+ Console.WriteLine(ex.ToString());
}
property = propertyPrefix + ".LocatorCacheTimeout";
test(b1.ice_getLocatorCacheTimeout() == -1);
@@ -481,7 +471,7 @@ public class AllTests : TestCommon.TestApp
baseProxy.ice_timeout(0);
test(false);
}
- catch(System.ArgumentException)
+ catch(ArgumentException)
{
}
@@ -489,7 +479,7 @@ public class AllTests : TestCommon.TestApp
{
baseProxy.ice_timeout(-1);
}
- catch(System.ArgumentException)
+ catch(ArgumentException)
{
test(false);
}
@@ -499,7 +489,7 @@ public class AllTests : TestCommon.TestApp
baseProxy.ice_timeout(-2);
test(false);
}
- catch(System.ArgumentException)
+ catch(ArgumentException)
{
}
@@ -508,7 +498,7 @@ public class AllTests : TestCommon.TestApp
baseProxy.ice_invocationTimeout(0);
test(false);
}
- catch(System.ArgumentException)
+ catch(ArgumentException)
{
}
@@ -517,7 +507,7 @@ public class AllTests : TestCommon.TestApp
baseProxy.ice_invocationTimeout(-1);
baseProxy.ice_invocationTimeout(-2);
}
- catch(System.ArgumentException)
+ catch(ArgumentException)
{
test(false);
}
@@ -527,7 +517,7 @@ public class AllTests : TestCommon.TestApp
baseProxy.ice_invocationTimeout(-3);
test(false);
}
- catch(System.ArgumentException)
+ catch(ArgumentException)
{
}
@@ -535,7 +525,7 @@ public class AllTests : TestCommon.TestApp
{
baseProxy.ice_locatorCacheTimeout(0);
}
- catch(System.ArgumentException)
+ catch(ArgumentException)
{
test(false);
}
@@ -544,7 +534,7 @@ public class AllTests : TestCommon.TestApp
{
baseProxy.ice_locatorCacheTimeout(-1);
}
- catch(System.ArgumentException)
+ catch(ArgumentException)
{
test(false);
}
@@ -554,7 +544,7 @@ public class AllTests : TestCommon.TestApp
baseProxy.ice_locatorCacheTimeout(-2);
test(false);
}
- catch(System.ArgumentException)
+ catch(ArgumentException)
{
}
@@ -931,10 +921,6 @@ public class AllTests : TestCommon.TestApp
}
WriteLine("ok");
-#if SILVERLIGHT
- cl.shutdown();
-#else
return cl;
-#endif
}
}
diff --git a/csharp/test/Ice/proxy/Client.cs b/csharp/test/Ice/proxy/Client.cs
index 185315c1b5a..187f95e9c4f 100644
--- a/csharp/test/Ice/proxy/Client.cs
+++ b/csharp/test/Ice/proxy/Client.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -22,9 +21,7 @@ public class Client
private static int run(String[] args, Ice.Communicator communicator)
{
Test.MyClassPrx myClass = AllTests.allTests(communicator);
-
myClass.shutdown();
-
return 0;
}
@@ -41,7 +38,7 @@ public class Client
communicator = Ice.Util.initialize(ref args, initData);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
Console.Error.WriteLine(ex);
status = 1;
diff --git a/csharp/test/Ice/proxy/Collocated.cs b/csharp/test/Ice/proxy/Collocated.cs
index 4903db6532d..c161aa41a24 100644
--- a/csharp/test/Ice/proxy/Collocated.cs
+++ b/csharp/test/Ice/proxy/Collocated.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -47,7 +46,7 @@ public class Collocated
communicator = Ice.Util.initialize(ref args, initData);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
Console.Error.WriteLine(ex);
status = 1;
diff --git a/csharp/test/Ice/proxy/MyDerivedClassAMDI.cs b/csharp/test/Ice/proxy/MyDerivedClassAMDI.cs
index c9c76203089..db1eece2fd0 100644
--- a/csharp/test/Ice/proxy/MyDerivedClassAMDI.cs
+++ b/csharp/test/Ice/proxy/MyDerivedClassAMDI.cs
@@ -7,7 +7,6 @@
//
// **********************************************************************
-using System;
using System.Collections.Generic;
public sealed class MyDerivedClassI : Test.MyDerivedClass
diff --git a/csharp/test/Ice/proxy/MyDerivedClassI.cs b/csharp/test/Ice/proxy/MyDerivedClassI.cs
index 395c0065e98..7a5a3fc5c6f 100644
--- a/csharp/test/Ice/proxy/MyDerivedClassI.cs
+++ b/csharp/test/Ice/proxy/MyDerivedClassI.cs
@@ -7,7 +7,6 @@
//
// **********************************************************************
-using System;
using System.Collections.Generic;
public sealed class MyDerivedClassI : Test.MyDerivedClass
diff --git a/csharp/test/Ice/proxy/Server.cs b/csharp/test/Ice/proxy/Server.cs
index c67d61b117a..7015c9de392 100644
--- a/csharp/test/Ice/proxy/Server.cs
+++ b/csharp/test/Ice/proxy/Server.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -48,7 +47,7 @@ public class Server
communicator = Ice.Util.initialize(ref args, initData);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
Console.Error.WriteLine(ex);
status = 1;
diff --git a/csharp/test/Ice/retry/AllTests.cs b/csharp/test/Ice/retry/AllTests.cs
index 8f0b43ed9c5..bc356c6c843 100644
--- a/csharp/test/Ice/retry/AllTests.cs
+++ b/csharp/test/Ice/retry/AllTests.cs
@@ -11,10 +11,6 @@ using System;
using System.Diagnostics;
using System.Threading;
-#if SILVERLIGHT
-using System.Windows.Controls;
-#endif
-
public class AllTests : TestCommon.TestApp
{
private class Callback
@@ -30,7 +26,7 @@ public class AllTests : TestCommon.TestApp
{
while(!_called)
{
- System.Threading.Monitor.Wait(this);
+ Monitor.Wait(this);
}
_called = false;
@@ -43,54 +39,14 @@ public class AllTests : TestCommon.TestApp
{
Debug.Assert(!_called);
_called = true;
- System.Threading.Monitor.Pulse(this);
+ Monitor.Pulse(this);
}
}
private bool _called;
}
-#if SILVERLIGHT
- public override Ice.InitializationData initData()
- {
- Ice.InitializationData initData = new Ice.InitializationData();
- initData.properties = Ice.Util.createProperties();
- initData.observer = Instrumentation.getObserver();
-
- initData.properties.setProperty("Ice.RetryIntervals", "0 1 10 1");
-
- //
- // This test kills connections, so we don't want warnings.
- //
- initData.properties.setProperty("Ice.Warn.Connections", "0");
- return initData;
- }
-
- public override void run(Ice.Communicator communicator)
- {
- //
- // Configure a second communicator for the invocation timeout
- // + retry test, we need to configure a large retry interval
- // to avoid time-sensitive failures.
- //
- Ice.InitializationData initData2 = new Ice.InitializationData();
- initData2.properties = communicator.getProperties().ice_clone_();
- initData2.properties.setProperty("Ice.RetryIntervals", "0 1 10000");
- initData2.observer = Instrumentation.getObserver();
- Ice.Communicator communicator2 = Ice.Util.initialize(initData2);
- try
- {
- allTests(communicator, communicator2, "retry:default -p 12010");
- }
- finally
- {
- communicator2.destroy();
- }
- }
- public void
-#else
static public Test.RetryPrx
-#endif
allTests(Ice.Communicator communicator, Ice.Communicator communicator2, string rf)
{
Write("testing stringToProxy... ");
@@ -292,11 +248,6 @@ public class AllTests : TestCommon.TestApp
Instrumentation.testRetryCount(-1);
}
WriteLine("ok");
-
-#if SILVERLIGHT
- retry1.shutdown();
-#else
return retry1;
-#endif
}
}
diff --git a/csharp/test/Ice/retry/Client.cs b/csharp/test/Ice/retry/Client.cs
index a3420fb4f64..db792e0c336 100644
--- a/csharp/test/Ice/retry/Client.cs
+++ b/csharp/test/Ice/retry/Client.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -60,7 +59,7 @@ public class Client
status = run(args, communicator, communicator2);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
Console.Error.WriteLine(ex);
status = 1;
diff --git a/csharp/test/Ice/retry/Collocated.cs b/csharp/test/Ice/retry/Collocated.cs
index 34400d16aab..6791089ceef 100644
--- a/csharp/test/Ice/retry/Collocated.cs
+++ b/csharp/test/Ice/retry/Collocated.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -70,7 +69,7 @@ public class Collocated
status = run(args, communicator, communicator2);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
Console.Error.WriteLine(ex);
status = 1;
diff --git a/csharp/test/Ice/retry/RetryI.cs b/csharp/test/Ice/retry/RetryI.cs
index f4d87288dc9..d7370c7edaa 100644
--- a/csharp/test/Ice/retry/RetryI.cs
+++ b/csharp/test/Ice/retry/RetryI.cs
@@ -7,8 +7,6 @@
//
// **********************************************************************
-using System;
-
public sealed class RetryI : Test.RetryDisp_
{
public RetryI()
diff --git a/csharp/test/Ice/retry/Server.cs b/csharp/test/Ice/retry/Server.cs
index be9abcb05e6..5e2ef77792f 100644
--- a/csharp/test/Ice/retry/Server.cs
+++ b/csharp/test/Ice/retry/Server.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -43,7 +42,7 @@ public class Server
communicator = Ice.Util.initialize(ref args, initData);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
Console.Error.WriteLine(ex);
status = 1;
diff --git a/csharp/test/Ice/retry/SystemFailure.cs b/csharp/test/Ice/retry/SystemFailure.cs
index e9503e98028..4893b7f4f66 100644
--- a/csharp/test/Ice/retry/SystemFailure.cs
+++ b/csharp/test/Ice/retry/SystemFailure.cs
@@ -7,8 +7,7 @@
//
// **********************************************************************
-using System;
-
+[System.Serializable]
public class SystemFailure : Ice.SystemException
{
public override string
diff --git a/csharp/test/Ice/seqMapping/AllTests.cs b/csharp/test/Ice/seqMapping/AllTests.cs
index 34f5960cbcd..cabf73185b6 100644
--- a/csharp/test/Ice/seqMapping/AllTests.cs
+++ b/csharp/test/Ice/seqMapping/AllTests.cs
@@ -7,32 +7,10 @@
//
// **********************************************************************
-using System;
-
-#if SILVERLIGHT
-using System.Windows.Controls;
-#endif
-
public class AllTests : TestCommon.TestApp
{
-#if SILVERLIGHT
- public override Ice.InitializationData initData()
- {
- Ice.InitializationData initData = new Ice.InitializationData();
- initData.properties = Ice.Util.createProperties();
- initData.properties.setProperty("Ice.FactoryAssemblies", "seqMapping,version=1.0.0.0");
- return initData;
- }
-
- override
- public void run(Ice.Communicator communicator)
-#else
public static Test.MyClassPrx allTests(Ice.Communicator communicator, bool collocated)
-#endif
{
-#if SILVERLIGHT
- bool collocated = false;
-#endif
Flush();
string rf = "test:default -p 12010";
Ice.ObjectPrx baseProxy = communicator.stringToProxy(rf);
@@ -50,10 +28,6 @@ public class AllTests : TestCommon.TestApp
TwowaysAMI.twowaysAMI(communicator, cl);
WriteLine("ok");
}
-#if SILVERLIGHT
- cl.shutdown();
-#else
return cl;
-#endif
}
}
diff --git a/csharp/test/Ice/seqMapping/Client.cs b/csharp/test/Ice/seqMapping/Client.cs
index d11950a3ce2..2b99829d7eb 100644
--- a/csharp/test/Ice/seqMapping/Client.cs
+++ b/csharp/test/Ice/seqMapping/Client.cs
@@ -38,18 +38,10 @@ public class Client
try
{
Ice.InitializationData data = new Ice.InitializationData();
-#if COMPACT
- //
- // When using Ice for .NET Compact Framework, we need to specify
- // the assembly so that Ice can locate classes and exceptions.
- //
- data.properties = Ice.Util.createProperties();
- data.properties.setProperty("Ice.FactoryAssemblies", "client");
-#endif
communicator = Ice.Util.initialize(ref args, data);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
Console.Error.WriteLine(ex);
status = 1;
@@ -67,7 +59,6 @@ public class Client
status = 1;
}
}
-
return status;
}
}
diff --git a/csharp/test/Ice/seqMapping/Collocated.cs b/csharp/test/Ice/seqMapping/Collocated.cs
index c1aec283894..383d149ece2 100644
--- a/csharp/test/Ice/seqMapping/Collocated.cs
+++ b/csharp/test/Ice/seqMapping/Collocated.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -39,18 +38,10 @@ public class Collocated
try
{
Ice.InitializationData data = new Ice.InitializationData();
-#if COMPACT
- //
- // When using Ice for .NET Compact Framework, we need to specify
- // the assembly so that Ice can locate classes and exceptions.
- //
- data.properties = Ice.Util.createProperties();
- data.properties.setProperty("Ice.FactoryAssemblies", "collocated");
-#endif
communicator = Ice.Util.initialize(ref args, data);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
Console.Error.WriteLine(ex);
status = 1;
diff --git a/csharp/test/Ice/seqMapping/Custom.cs b/csharp/test/Ice/seqMapping/Custom.cs
index aeb7e40042a..10428afb08e 100644
--- a/csharp/test/Ice/seqMapping/Custom.cs
+++ b/csharp/test/Ice/seqMapping/Custom.cs
@@ -9,7 +9,6 @@
using System;
using System.Collections.Generic;
-using Test;
public class Custom<T> : IEnumerable<T>
{
@@ -79,7 +78,7 @@ public class Custom<T> : IEnumerable<T>
}
return true;
}
- catch(System.Exception)
+ catch(Exception)
{
return false;
}
diff --git a/csharp/test/Ice/seqMapping/MyClassAMDI.cs b/csharp/test/Ice/seqMapping/MyClassAMDI.cs
index aaafa5a2603..3c6d1f4c0ac 100644
--- a/csharp/test/Ice/seqMapping/MyClassAMDI.cs
+++ b/csharp/test/Ice/seqMapping/MyClassAMDI.cs
@@ -44,11 +44,6 @@ public sealed class MyClassI : MyClass
cb.ice_response(i, i);
}
- public override void opCByteS_async(AMD_MyClass_opCByteS cb, CByteS i, Ice.Current current)
- {
- cb.ice_response(i, i);
- }
-
public override void opABoolS_async(AMD_MyClass_opABoolS cb, bool[] i, Ice.Current current)
{
cb.ice_response(i, i);
@@ -74,11 +69,6 @@ public sealed class MyClassI : MyClass
cb.ice_response(i, i);
}
- public override void opCBoolS_async(AMD_MyClass_opCBoolS cb, CBoolS i, Ice.Current current)
- {
- cb.ice_response(i, i);
- }
-
public override void opAShortS_async(AMD_MyClass_opAShortS cb, short[] i, Ice.Current current)
{
cb.ice_response(i, i);
@@ -104,11 +94,6 @@ public sealed class MyClassI : MyClass
cb.ice_response(i, i);
}
- public override void opCShortS_async(AMD_MyClass_opCShortS cb, CShortS i, Ice.Current current)
- {
- cb.ice_response(i, i);
- }
-
public override void opAIntS_async(AMD_MyClass_opAIntS cb, int[] i, Ice.Current current)
{
cb.ice_response(i, i);
@@ -134,11 +119,6 @@ public sealed class MyClassI : MyClass
cb.ice_response(i, i);
}
- public override void opCIntS_async(AMD_MyClass_opCIntS cb, CIntS i, Ice.Current current)
- {
- cb.ice_response(i, i);
- }
-
public override void opALongS_async(AMD_MyClass_opALongS cb, long[] i, Ice.Current current)
{
cb.ice_response(i, i);
@@ -164,11 +144,6 @@ public sealed class MyClassI : MyClass
cb.ice_response(i, i);
}
- public override void opCLongS_async(AMD_MyClass_opCLongS cb, CLongS i, Ice.Current current)
- {
- cb.ice_response(i, i);
- }
-
public override void opAFloatS_async(AMD_MyClass_opAFloatS cb, float[] i, Ice.Current current)
{
cb.ice_response(i, i);
@@ -194,11 +169,6 @@ public sealed class MyClassI : MyClass
cb.ice_response(i, i);
}
- public override void opCFloatS_async(AMD_MyClass_opCFloatS cb, CFloatS i, Ice.Current current)
- {
- cb.ice_response(i, i);
- }
-
public override void opADoubleS_async(AMD_MyClass_opADoubleS cb, double[] i, Ice.Current current)
{
cb.ice_response(i, i);
@@ -224,11 +194,6 @@ public sealed class MyClassI : MyClass
cb.ice_response(i, i);
}
- public override void opCDoubleS_async(AMD_MyClass_opCDoubleS cb, CDoubleS i, Ice.Current current)
- {
- cb.ice_response(i, i);
- }
-
public override void opAStringS_async(AMD_MyClass_opAStringS cb, string[] i, Ice.Current current)
{
cb.ice_response(i, i);
@@ -254,11 +219,6 @@ public sealed class MyClassI : MyClass
cb.ice_response(i, i);
}
- public override void opCStringS_async(AMD_MyClass_opCStringS cb, CStringS i, Ice.Current current)
- {
- cb.ice_response(i, i);
- }
-
public override void opAObjectS_async(AMD_MyClass_opAObjectS cb, Ice.Object[] i, Ice.Current current)
{
cb.ice_response(i, i);
@@ -269,11 +229,6 @@ public sealed class MyClassI : MyClass
cb.ice_response(i, i);
}
- public override void opCObjectS_async(AMD_MyClass_opCObjectS cb, CObjectS i, Ice.Current current)
- {
- cb.ice_response(i, i);
- }
-
public override void opAObjectPrxS_async(AMD_MyClass_opAObjectPrxS cb, Ice.ObjectPrx[] i, Ice.Current current)
{
cb.ice_response(i, i);
@@ -299,11 +254,6 @@ public sealed class MyClassI : MyClass
cb.ice_response(i, i);
}
- public override void opCObjectPrxS_async(AMD_MyClass_opCObjectPrxS cb, CObjectPrxS i, Ice.Current current)
- {
- cb.ice_response(i, i);
- }
-
public override void opAStructS_async(AMD_MyClass_opAStructS cb, S[] i, Ice.Current current)
{
cb.ice_response(i, i);
@@ -329,11 +279,6 @@ public sealed class MyClassI : MyClass
cb.ice_response(i, i);
}
- public override void opCStructS_async(AMD_MyClass_opCStructS cb, CStructS i, Ice.Current current)
- {
- cb.ice_response(i, i);
- }
-
public override void opAStructSD_async(AMD_MyClass_opAStructSD cb, SD[] i, Ice.Current current)
{
cb.ice_response(i, i);
@@ -359,11 +304,6 @@ public sealed class MyClassI : MyClass
cb.ice_response(i, i);
}
- public override void opCStructSD_async(AMD_MyClass_opCStructSD cb, CStructSD i, Ice.Current current)
- {
- cb.ice_response(i, i);
- }
-
public override void opACVS_async(AMD_MyClass_opACVS cb, CV[] i, Ice.Current current)
{
cb.ice_response(i, i);
@@ -374,11 +314,6 @@ public sealed class MyClassI : MyClass
cb.ice_response(i, i);
}
- public override void opCCVS_async(AMD_MyClass_opCCVS cb, CCVS i, Ice.Current current)
- {
- cb.ice_response(i, i);
- }
-
public override void opACVPrxS_async(AMD_MyClass_opACVPrxS cb, CVPrx[] i, Ice.Current current)
{
cb.ice_response(i, i);
@@ -404,11 +339,6 @@ public sealed class MyClassI : MyClass
cb.ice_response(i, i);
}
- public override void opCCVPrxS_async(AMD_MyClass_opCCVPrxS cb, CCVPrxS i, Ice.Current current)
- {
- cb.ice_response(i, i);
- }
-
public override void opACRS_async(AMD_MyClass_opACRS cb, CR[] i, Ice.Current current)
{
cb.ice_response(i, i);
@@ -419,11 +349,6 @@ public sealed class MyClassI : MyClass
cb.ice_response(i, i);
}
- public override void opCCRS_async(AMD_MyClass_opCCRS cb, CCRS i, Ice.Current current)
- {
- cb.ice_response(i, i);
- }
-
public override void opAEnS_async(AMD_MyClass_opAEnS cb, En[] i, Ice.Current current)
{
cb.ice_response(i, i);
@@ -449,11 +374,6 @@ public sealed class MyClassI : MyClass
cb.ice_response(i, i);
}
- public override void opCEnS_async(AMD_MyClass_opCEnS cb, CEnS i, Ice.Current current)
- {
- cb.ice_response(i, i);
- }
-
public override void opCustomIntS_async(AMD_MyClass_opCustomIntS cb, Custom<int> i, Ice.Current current)
{
cb.ice_response(i, i);
diff --git a/csharp/test/Ice/seqMapping/MyClassI.cs b/csharp/test/Ice/seqMapping/MyClassI.cs
index d5003b24f93..37ef1b94732 100644
--- a/csharp/test/Ice/seqMapping/MyClassI.cs
+++ b/csharp/test/Ice/seqMapping/MyClassI.cs
@@ -7,7 +7,6 @@
//
// **********************************************************************
-using System;
using System.Collections.Generic;
using Test;
@@ -48,12 +47,6 @@ public sealed class MyClassI : Test.MyClass
return i;
}
- public override CByteS opCByteS(CByteS i, out CByteS o, Ice.Current current)
- {
- o = i;
- return i;
- }
-
public override bool[] opABoolS(bool[] i, out bool[] o, Ice.Current current)
{
o = i;
@@ -84,12 +77,6 @@ public sealed class MyClassI : Test.MyClass
return i;
}
- public override CBoolS opCBoolS(CBoolS i, out CBoolS o, Ice.Current current)
- {
- o = i;
- return i;
- }
-
public override short[] opAShortS(short[] i, out short[] o, Ice.Current current)
{
o = i;
@@ -120,12 +107,6 @@ public sealed class MyClassI : Test.MyClass
return i;
}
- public override CShortS opCShortS(CShortS i, out CShortS o, Ice.Current current)
- {
- o = i;
- return i;
- }
-
public override int[] opAIntS(int[] i, out int[] o, Ice.Current current)
{
o = i;
@@ -156,12 +137,6 @@ public sealed class MyClassI : Test.MyClass
return i;
}
- public override CIntS opCIntS(CIntS i, out CIntS o, Ice.Current current)
- {
- o = i;
- return i;
- }
-
public override long[] opALongS(long[] i, out long[] o, Ice.Current current)
{
o = i;
@@ -192,12 +167,6 @@ public sealed class MyClassI : Test.MyClass
return i;
}
- public override CLongS opCLongS(CLongS i, out CLongS o, Ice.Current current)
- {
- o = i;
- return i;
- }
-
public override float[] opAFloatS(float[] i, out float[] o, Ice.Current current)
{
o = i;
@@ -228,12 +197,6 @@ public sealed class MyClassI : Test.MyClass
return i;
}
- public override CFloatS opCFloatS(CFloatS i, out CFloatS o, Ice.Current current)
- {
- o = i;
- return i;
- }
-
public override double[] opADoubleS(double[] i, out double[] o, Ice.Current current)
{
o = i;
@@ -264,12 +227,6 @@ public sealed class MyClassI : Test.MyClass
return i;
}
- public override CDoubleS opCDoubleS(CDoubleS i, out CDoubleS o, Ice.Current current)
- {
- o = i;
- return i;
- }
-
public override string[] opAStringS(string[] i, out string[] o, Ice.Current current)
{
o = i;
@@ -300,12 +257,6 @@ public sealed class MyClassI : Test.MyClass
return i;
}
- public override CStringS opCStringS(CStringS i, out CStringS o, Ice.Current current)
- {
- o = i;
- return i;
- }
-
public override Ice.Object[] opAObjectS(Ice.Object[] i, out Ice.Object[] o, Ice.Current current)
{
o = i;
@@ -318,12 +269,6 @@ public sealed class MyClassI : Test.MyClass
return i;
}
- public override CObjectS opCObjectS(CObjectS i, out CObjectS o, Ice.Current current)
- {
- o = i;
- return i;
- }
-
public override Ice.ObjectPrx[] opAObjectPrxS(Ice.ObjectPrx[] i, out Ice.ObjectPrx[] o, Ice.Current current)
{
o = i;
@@ -354,12 +299,6 @@ public sealed class MyClassI : Test.MyClass
return i;
}
- public override CObjectPrxS opCObjectPrxS(CObjectPrxS i, out CObjectPrxS o, Ice.Current current)
- {
- o = i;
- return i;
- }
-
public override S[] opAStructS(S[] i, out S[] o, Ice.Current current)
{
o = i;
@@ -390,12 +329,6 @@ public sealed class MyClassI : Test.MyClass
return i;
}
- public override CStructS opCStructS(CStructS i, out CStructS o, Ice.Current current)
- {
- o = i;
- return i;
- }
-
public override SD[] opAStructSD(SD[] i, out SD[] o, Ice.Current current)
{
o = i;
@@ -426,12 +359,6 @@ public sealed class MyClassI : Test.MyClass
return i;
}
- public override CStructSD opCStructSD(CStructSD i, out CStructSD o, Ice.Current current)
- {
- o = i;
- return i;
- }
-
public override CV[] opACVS(CV[] i, out CV[] o, Ice.Current current)
{
o = i;
@@ -444,12 +371,6 @@ public sealed class MyClassI : Test.MyClass
return i;
}
- public override CCVS opCCVS(CCVS i, out CCVS o, Ice.Current current)
- {
- o = i;
- return i;
- }
-
public override CR[] opACRS(CR[] i, out CR[] o, Ice.Current current)
{
o = i;
@@ -462,12 +383,6 @@ public sealed class MyClassI : Test.MyClass
return i;
}
- public override CCRS opCCRS(CCRS i, out CCRS o, Ice.Current current)
- {
- o = i;
- return i;
- }
-
public override En[] opAEnS(En[] i, out En[] o, Ice.Current current)
{
o = i;
@@ -498,12 +413,6 @@ public sealed class MyClassI : Test.MyClass
return i;
}
- public override CEnS opCEnS(CEnS i, out CEnS o, Ice.Current current)
- {
- o = i;
- return i;
- }
-
public override CVPrx[] opACVPrxS(CVPrx[] i, out CVPrx[] o, Ice.Current current)
{
o = i;
@@ -534,12 +443,6 @@ public sealed class MyClassI : Test.MyClass
return i;
}
- public override CCVPrxS opCCVPrxS(CCVPrxS i, out CCVPrxS o, Ice.Current current)
- {
- o = i;
- return i;
- }
-
public override Custom<int> opCustomIntS(Custom<int> i, out Custom<int> o, Ice.Current current)
{
o = i;
diff --git a/csharp/test/Ice/seqMapping/Serializable.cs b/csharp/test/Ice/seqMapping/Serializable.cs
index 2164e365287..81b18727017 100644
--- a/csharp/test/Ice/seqMapping/Serializable.cs
+++ b/csharp/test/Ice/seqMapping/Serializable.cs
@@ -6,7 +6,7 @@
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
-#if !SILVERLIGHT
+
using System;
[assembly: CLSCompliant(true)]
@@ -45,4 +45,3 @@ public class Struct // Used to test that null members marshal correctly.
}
}
-#endif
diff --git a/csharp/test/Ice/seqMapping/Server.cs b/csharp/test/Ice/seqMapping/Server.cs
index cee2c54bffe..cae559bf0c9 100644
--- a/csharp/test/Ice/seqMapping/Server.cs
+++ b/csharp/test/Ice/seqMapping/Server.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -38,18 +37,10 @@ public class Server
try
{
Ice.InitializationData data = new Ice.InitializationData();
-#if COMPACT
- //
- // When using Ice for .NET Compact Framework, we need to specify
- // the assembly so that Ice can locate classes and exceptions.
- //
- data.properties = Ice.Util.createProperties();
- data.properties.setProperty("Ice.FactoryAssemblies", "server");
-#endif
communicator = Ice.Util.initialize(ref args, data);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
Console.Error.WriteLine(ex);
status = 1;
diff --git a/csharp/test/Ice/seqMapping/ServerAMD.cs b/csharp/test/Ice/seqMapping/ServerAMD.cs
index d6f37723d75..cae559bf0c9 100644
--- a/csharp/test/Ice/seqMapping/ServerAMD.cs
+++ b/csharp/test/Ice/seqMapping/ServerAMD.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -38,18 +37,10 @@ public class Server
try
{
Ice.InitializationData data = new Ice.InitializationData();
-#if COMPACT
- //
- // When using Ice for .NET Compact Framework, we need to specify
- // the assembly so that Ice can locate classes and exceptions.
- //
- data.properties = Ice.Util.createProperties();
- data.properties.setProperty("Ice.FactoryAssemblies", "serveramd");
-#endif
communicator = Ice.Util.initialize(ref args, data);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
Console.Error.WriteLine(ex);
status = 1;
diff --git a/csharp/test/Ice/seqMapping/Test.ice b/csharp/test/Ice/seqMapping/Test.ice
index 019f67c9078..0846e0b6093 100644
--- a/csharp/test/Ice/seqMapping/Test.ice
+++ b/csharp/test/Ice/seqMapping/Test.ice
@@ -17,67 +17,57 @@ sequence<byte> AByteS;
["clr:generic:LinkedList"] sequence<byte> KByteS;
["clr:generic:Queue"] sequence<byte> QByteS;
["clr:generic:Stack"] sequence<byte> SByteS;
-["clr:collection"] sequence<byte> CByteS;
sequence<bool> ABoolS;
["clr:generic:List"] sequence<bool> LBoolS;
["clr:generic:LinkedList"] sequence<bool> KBoolS;
["clr:generic:Queue"] sequence<bool> QBoolS;
["clr:generic:Stack"] sequence<bool> SBoolS;
-["clr:collection"] sequence<bool> CBoolS;
sequence<short> AShortS;
["clr:generic:List"] sequence<short> LShortS;
["clr:generic:LinkedList"] sequence<short> KShortS;
["clr:generic:Queue"] sequence<short> QShortS;
["clr:generic:Stack"] sequence<short> SShortS;
-["clr:collection"] sequence<short> CShortS;
sequence<int> AIntS;
["clr:generic:List"] sequence<int> LIntS;
["clr:generic:LinkedList"] sequence<int> KIntS;
["clr:generic:Queue"] sequence<int> QIntS;
["clr:generic:Stack"] sequence<int> SIntS;
-["clr:collection"] sequence<int> CIntS;
sequence<long> ALongS;
["clr:generic:List"] sequence<long> LLongS;
["clr:generic:LinkedList"] sequence<long> KLongS;
["clr:generic:Queue"] sequence<long> QLongS;
["clr:generic:Stack"] sequence<long> SLongS;
-["clr:collection"] sequence<long> CLongS;
sequence<float> AFloatS;
["clr:generic:List"] sequence<float> LFloatS;
["clr:generic:LinkedList"] sequence<float> KFloatS;
["clr:generic:Queue"] sequence<float> QFloatS;
["clr:generic:Stack"] sequence<float> SFloatS;
-["clr:collection"] sequence<float> CFloatS;
sequence<double> ADoubleS;
["clr:generic:List"] sequence<double> LDoubleS;
["clr:generic:LinkedList"] sequence<double> KDoubleS;
["clr:generic:Queue"] sequence<double> QDoubleS;
["clr:generic:Stack"] sequence<double> SDoubleS;
-["clr:collection"] sequence<double> CDoubleS;
sequence<string> AStringS;
["clr:generic:List"] sequence<string> LStringS;
["clr:generic:LinkedList"] sequence<string> KStringS;
["clr:generic:Queue"] sequence<string> QStringS;
["clr:generic:Stack"] sequence<string> SStringS;
-["clr:collection"] sequence<string> CStringS;
sequence<Object> AObjectS;
["clr:generic:List"] sequence<Object> LObjectS;
-["clr:collection"] sequence<Object> CObjectS;
sequence<Object*> AObjectPrxS;
["clr:generic:List"] sequence<Object*> LObjectPrxS;
["clr:generic:LinkedList"] sequence<Object*> KObjectPrxS;
["clr:generic:Queue"] sequence<Object*> QObjectPrxS;
["clr:generic:Stack"] sequence<Object*> SObjectPrxS;
-["clr:collection"] sequence<Object*> CObjectPrxS;
struct S
{
@@ -89,7 +79,6 @@ sequence<S> AStructS;
["clr:generic:LinkedList"] sequence<S> KStructS;
["clr:generic:Queue"] sequence<S> QStructS;
["clr:generic:Stack"] sequence<S> SStructS;
-["clr:collection"] sequence<S> CStructS;
struct SD
{
@@ -101,7 +90,6 @@ sequence<SD> AStructSD;
["clr:generic:LinkedList"] sequence<SD> KStructSD;
["clr:generic:Queue"] sequence<SD> QStructSD;
["clr:generic:Stack"] sequence<SD> SStructSD;
-["clr:collection"] sequence<SD> CStructSD;
class CV
{
@@ -110,14 +98,12 @@ class CV
sequence<CV> ACVS;
["clr:generic:List"] sequence<CV> LCVS;
-["clr:collection"] sequence<CV> CCVS;
sequence<CV*> ACVPrxS;
["clr:generic:List"] sequence<CV*> LCVPrxS;
["clr:generic:LinkedList"] sequence<CV*> KCVPrxS;
["clr:generic:Queue"] sequence<CV*> QCVPrxS;
["clr:generic:Stack"] sequence<CV*> SCVPrxS;
-["clr:collection"] sequence<CV*> CCVPrxS;
class CR
{
@@ -126,7 +112,6 @@ class CR
sequence<CR> ACRS;
["clr:generic:List"] sequence<CR> LCRS;
-["clr:collection"] sequence<CR> CCRS;
enum En { A, B, C };
@@ -135,7 +120,6 @@ sequence<En> AEnS;
["clr:generic:LinkedList"] sequence<En> KEnS;
["clr:generic:Queue"] sequence<En> QEnS;
["clr:generic:Stack"] sequence<En> SEnS;
-["clr:collection"] sequence<En> CEnS;
["clr:generic:Custom"] sequence<int> CustomIntS;
["clr:generic:Custom"] sequence<CV> CustomCVS;
@@ -143,11 +127,9 @@ sequence<En> AEnS;
["clr:generic:Custom"] sequence<CustomIntS> CustomIntSS;
["clr:generic:Custom"] sequence<CustomCVS> CustomCVSS;
-#ifndef SILVERLIGHT
["clr:serializable:Serialize.Small"] sequence<byte> SerialSmall;
["clr:serializable:Serialize.Large"] sequence<byte> SerialLarge;
["clr:serializable:Serialize.Struct"] sequence<byte> SerialStruct;
-#endif
class MyClass
{
@@ -158,120 +140,100 @@ class MyClass
KByteS opKByteS(KByteS i, out KByteS o);
QByteS opQByteS(QByteS i, out QByteS o);
SByteS opSByteS(SByteS i, out SByteS o);
- CByteS opCByteS(CByteS i, out CByteS o);
ABoolS opABoolS(ABoolS i, out ABoolS o);
LBoolS opLBoolS(LBoolS i, out LBoolS o);
KBoolS opKBoolS(KBoolS i, out KBoolS o);
QBoolS opQBoolS(QBoolS i, out QBoolS o);
SBoolS opSBoolS(SBoolS i, out SBoolS o);
- CBoolS opCBoolS(CBoolS i, out CBoolS o);
AShortS opAShortS(AShortS i, out AShortS o);
LShortS opLShortS(LShortS i, out LShortS o);
KShortS opKShortS(KShortS i, out KShortS o);
QShortS opQShortS(QShortS i, out QShortS o);
SShortS opSShortS(SShortS i, out SShortS o);
- CShortS opCShortS(CShortS i, out CShortS o);
AIntS opAIntS(AIntS i, out AIntS o);
LIntS opLIntS(LIntS i, out LIntS o);
KIntS opKIntS(KIntS i, out KIntS o);
QIntS opQIntS(QIntS i, out QIntS o);
SIntS opSIntS(SIntS i, out SIntS o);
- CIntS opCIntS(CIntS i, out CIntS o);
ALongS opALongS(ALongS i, out ALongS o);
LLongS opLLongS(LLongS i, out LLongS o);
KLongS opKLongS(KLongS i, out KLongS o);
QLongS opQLongS(QLongS i, out QLongS o);
SLongS opSLongS(SLongS i, out SLongS o);
- CLongS opCLongS(CLongS i, out CLongS o);
AFloatS opAFloatS(AFloatS i, out AFloatS o);
LFloatS opLFloatS(LFloatS i, out LFloatS o);
KFloatS opKFloatS(KFloatS i, out KFloatS o);
QFloatS opQFloatS(QFloatS i, out QFloatS o);
SFloatS opSFloatS(SFloatS i, out SFloatS o);
- CFloatS opCFloatS(CFloatS i, out CFloatS o);
ADoubleS opADoubleS(ADoubleS i, out ADoubleS o);
LDoubleS opLDoubleS(LDoubleS i, out LDoubleS o);
KDoubleS opKDoubleS(KDoubleS i, out KDoubleS o);
QDoubleS opQDoubleS(QDoubleS i, out QDoubleS o);
SDoubleS opSDoubleS(SDoubleS i, out SDoubleS o);
- CDoubleS opCDoubleS(CDoubleS i, out CDoubleS o);
AStringS opAStringS(AStringS i, out AStringS o);
LStringS opLStringS(LStringS i, out LStringS o);
KStringS opKStringS(KStringS i, out KStringS o);
QStringS opQStringS(QStringS i, out QStringS o);
SStringS opSStringS(SStringS i, out SStringS o);
- CStringS opCStringS(CStringS i, out CStringS o);
AObjectS opAObjectS(AObjectS i, out AObjectS o);
LObjectS opLObjectS(LObjectS i, out LObjectS o);
- CObjectS opCObjectS(CObjectS i, out CObjectS o);
AObjectPrxS opAObjectPrxS(AObjectPrxS i, out AObjectPrxS o);
LObjectPrxS opLObjectPrxS(LObjectPrxS i, out LObjectPrxS o);
KObjectPrxS opKObjectPrxS(KObjectPrxS i, out KObjectPrxS o);
QObjectPrxS opQObjectPrxS(QObjectPrxS i, out QObjectPrxS o);
SObjectPrxS opSObjectPrxS(SObjectPrxS i, out SObjectPrxS o);
- CObjectPrxS opCObjectPrxS(CObjectPrxS i, out CObjectPrxS o);
AStructS opAStructS(AStructS i, out AStructS o);
LStructS opLStructS(LStructS i, out LStructS o);
KStructS opKStructS(KStructS i, out KStructS o);
QStructS opQStructS(QStructS i, out QStructS o);
SStructS opSStructS(SStructS i, out SStructS o);
- CStructS opCStructS(CStructS i, out CStructS o);
AStructSD opAStructSD(AStructSD i, out AStructSD o);
LStructSD opLStructSD(LStructSD i, out LStructSD o);
KStructSD opKStructSD(KStructSD i, out KStructSD o);
QStructSD opQStructSD(QStructSD i, out QStructSD o);
SStructSD opSStructSD(SStructSD i, out SStructSD o);
- CStructSD opCStructSD(CStructSD i, out CStructSD o);
ACVS opACVS(ACVS i, out ACVS o);
LCVS opLCVS(LCVS i, out LCVS o);
- CCVS opCCVS(CCVS i, out CCVS o);
ACRS opACRS(ACRS i, out ACRS o);
LCRS opLCRS(LCRS i, out LCRS o);
- CCRS opCCRS(CCRS i, out CCRS o);
AEnS opAEnS(AEnS i, out AEnS o);
LEnS opLEnS(LEnS i, out LEnS o);
KEnS opKEnS(KEnS i, out KEnS o);
QEnS opQEnS(QEnS i, out QEnS o);
SEnS opSEnS(SEnS i, out SEnS o);
- CEnS opCEnS(CEnS i, out CEnS o);
ACVPrxS opACVPrxS(ACVPrxS i, out ACVPrxS o);
LCVPrxS opLCVPrxS(LCVPrxS i, out LCVPrxS o);
KCVPrxS opKCVPrxS(KCVPrxS i, out KCVPrxS o);
QCVPrxS opQCVPrxS(QCVPrxS i, out QCVPrxS o);
SCVPrxS opSCVPrxS(SCVPrxS i, out SCVPrxS o);
- CCVPrxS opCCVPrxS(CCVPrxS i, out CCVPrxS o);
CustomIntS opCustomIntS(CustomIntS i, out CustomIntS o);
CustomCVS opCustomCVS(CustomCVS i, out CustomCVS o);
CustomIntSS opCustomIntSS(CustomIntSS i, out CustomIntSS o);
CustomCVSS opCustomCVSS(CustomCVSS i, out CustomCVSS o);
-#ifndef SILVERLIGHT
SerialSmall opSerialSmallCSharp(SerialSmall i, out SerialSmall o);
SerialLarge opSerialLargeCSharp(SerialLarge i, out SerialLarge o);
SerialStruct opSerialStructCSharp(SerialStruct i, out SerialStruct o);
-#endif
};
// Remaining type definitions are there to verify that the generated
// code compiles correctly.
-
-#ifndef SILVERLIGHT
sequence<SerialLarge> SLS;
sequence<SLS> SLSS;
dictionary<int, SerialLarge> SLD;
@@ -293,5 +255,5 @@ class Baz
SerialLarge SLmem;
SLS SLSmem;
};
-#endif
+
};
diff --git a/csharp/test/Ice/seqMapping/TestAMD.ice b/csharp/test/Ice/seqMapping/TestAMD.ice
index f28190f1794..f0d86ad70d9 100644
--- a/csharp/test/Ice/seqMapping/TestAMD.ice
+++ b/csharp/test/Ice/seqMapping/TestAMD.ice
@@ -17,67 +17,57 @@ sequence<byte> AByteS;
["clr:generic:LinkedList"] sequence<byte> KByteS;
["clr:generic:Queue"] sequence<byte> QByteS;
["clr:generic:Stack"] sequence<byte> SByteS;
-["clr:collection"] sequence<byte> CByteS;
sequence<bool> ABoolS;
["clr:generic:List"] sequence<bool> LBoolS;
["clr:generic:LinkedList"] sequence<bool> KBoolS;
["clr:generic:Queue"] sequence<bool> QBoolS;
["clr:generic:Stack"] sequence<bool> SBoolS;
-["clr:collection"] sequence<bool> CBoolS;
sequence<short> AShortS;
["clr:generic:List"] sequence<short> LShortS;
["clr:generic:LinkedList"] sequence<short> KShortS;
["clr:generic:Queue"] sequence<short> QShortS;
["clr:generic:Stack"] sequence<short> SShortS;
-["clr:collection"] sequence<short> CShortS;
sequence<int> AIntS;
["clr:generic:List"] sequence<int> LIntS;
["clr:generic:LinkedList"] sequence<int> KIntS;
["clr:generic:Queue"] sequence<int> QIntS;
["clr:generic:Stack"] sequence<int> SIntS;
-["clr:collection"] sequence<int> CIntS;
sequence<long> ALongS;
["clr:generic:List"] sequence<long> LLongS;
["clr:generic:LinkedList"] sequence<long> KLongS;
["clr:generic:Queue"] sequence<long> QLongS;
["clr:generic:Stack"] sequence<long> SLongS;
-["clr:collection"] sequence<long> CLongS;
sequence<float> AFloatS;
["clr:generic:List"] sequence<float> LFloatS;
["clr:generic:LinkedList"] sequence<float> KFloatS;
["clr:generic:Queue"] sequence<float> QFloatS;
["clr:generic:Stack"] sequence<float> SFloatS;
-["clr:collection"] sequence<float> CFloatS;
sequence<double> ADoubleS;
["clr:generic:List"] sequence<double> LDoubleS;
["clr:generic:LinkedList"] sequence<double> KDoubleS;
["clr:generic:Queue"] sequence<double> QDoubleS;
["clr:generic:Stack"] sequence<double> SDoubleS;
-["clr:collection"] sequence<double> CDoubleS;
sequence<string> AStringS;
["clr:generic:List"] sequence<string> LStringS;
["clr:generic:LinkedList"] sequence<string> KStringS;
["clr:generic:Queue"] sequence<string> QStringS;
["clr:generic:Stack"] sequence<string> SStringS;
-["clr:collection"] sequence<string> CStringS;
sequence<Object> AObjectS;
["clr:generic:List"] sequence<Object> LObjectS;
-["clr:collection"] sequence<Object> CObjectS;
sequence<Object*> AObjectPrxS;
["clr:generic:List"] sequence<Object*> LObjectPrxS;
["clr:generic:LinkedList"] sequence<Object*> KObjectPrxS;
["clr:generic:Queue"] sequence<Object*> QObjectPrxS;
["clr:generic:Stack"] sequence<Object*> SObjectPrxS;
-["clr:collection"] sequence<Object*> CObjectPrxS;
struct S
{
@@ -89,7 +79,6 @@ sequence<S> AStructS;
["clr:generic:LinkedList"] sequence<S> KStructS;
["clr:generic:Queue"] sequence<S> QStructS;
["clr:generic:Stack"] sequence<S> SStructS;
-["clr:collection"] sequence<S> CStructS;
struct SD
{
@@ -101,7 +90,6 @@ sequence<SD> AStructSD;
["clr:generic:LinkedList"] sequence<SD> KStructSD;
["clr:generic:Queue"] sequence<SD> QStructSD;
["clr:generic:Stack"] sequence<SD> SStructSD;
-["clr:collection"] sequence<SD> CStructSD;
class CV
{
@@ -110,14 +98,12 @@ class CV
sequence<CV> ACVS;
["clr:generic:List"] sequence<CV> LCVS;
-["clr:collection"] sequence<CV> CCVS;
sequence<CV*> ACVPrxS;
["clr:generic:List"] sequence<CV*> LCVPrxS;
["clr:generic:LinkedList"] sequence<CV*> KCVPrxS;
["clr:generic:Queue"] sequence<CV*> QCVPrxS;
["clr:generic:Stack"] sequence<CV*> SCVPrxS;
-["clr:collection"] sequence<CV*> CCVPrxS;
class CR
{
@@ -126,7 +112,6 @@ class CR
sequence<CR> ACRS;
["clr:generic:List"] sequence<CR> LCRS;
-["clr:collection"] sequence<CR> CCRS;
enum En { A, B, C };
@@ -135,7 +120,6 @@ sequence<En> AEnS;
["clr:generic:LinkedList"] sequence<En> KEnS;
["clr:generic:Queue"] sequence<En> QEnS;
["clr:generic:Stack"] sequence<En> SEnS;
-["clr:collection"] sequence<En> CEnS;
["clr:generic:Custom"] sequence<int> CustomIntS;
["clr:generic:Custom"] sequence<CV> CustomCVS;
@@ -156,103 +140,87 @@ sequence<En> AEnS;
KByteS opKByteS(KByteS i, out KByteS o);
QByteS opQByteS(QByteS i, out QByteS o);
SByteS opSByteS(SByteS i, out SByteS o);
- CByteS opCByteS(CByteS i, out CByteS o);
ABoolS opABoolS(ABoolS i, out ABoolS o);
LBoolS opLBoolS(LBoolS i, out LBoolS o);
KBoolS opKBoolS(KBoolS i, out KBoolS o);
QBoolS opQBoolS(QBoolS i, out QBoolS o);
SBoolS opSBoolS(SBoolS i, out SBoolS o);
- CBoolS opCBoolS(CBoolS i, out CBoolS o);
AShortS opAShortS(AShortS i, out AShortS o);
LShortS opLShortS(LShortS i, out LShortS o);
KShortS opKShortS(KShortS i, out KShortS o);
QShortS opQShortS(QShortS i, out QShortS o);
SShortS opSShortS(SShortS i, out SShortS o);
- CShortS opCShortS(CShortS i, out CShortS o);
AIntS opAIntS(AIntS i, out AIntS o);
LIntS opLIntS(LIntS i, out LIntS o);
KIntS opKIntS(KIntS i, out KIntS o);
QIntS opQIntS(QIntS i, out QIntS o);
SIntS opSIntS(SIntS i, out SIntS o);
- CIntS opCIntS(CIntS i, out CIntS o);
ALongS opALongS(ALongS i, out ALongS o);
LLongS opLLongS(LLongS i, out LLongS o);
KLongS opKLongS(KLongS i, out KLongS o);
QLongS opQLongS(QLongS i, out QLongS o);
SLongS opSLongS(SLongS i, out SLongS o);
- CLongS opCLongS(CLongS i, out CLongS o);
AFloatS opAFloatS(AFloatS i, out AFloatS o);
LFloatS opLFloatS(LFloatS i, out LFloatS o);
KFloatS opKFloatS(KFloatS i, out KFloatS o);
QFloatS opQFloatS(QFloatS i, out QFloatS o);
SFloatS opSFloatS(SFloatS i, out SFloatS o);
- CFloatS opCFloatS(CFloatS i, out CFloatS o);
ADoubleS opADoubleS(ADoubleS i, out ADoubleS o);
LDoubleS opLDoubleS(LDoubleS i, out LDoubleS o);
KDoubleS opKDoubleS(KDoubleS i, out KDoubleS o);
QDoubleS opQDoubleS(QDoubleS i, out QDoubleS o);
SDoubleS opSDoubleS(SDoubleS i, out SDoubleS o);
- CDoubleS opCDoubleS(CDoubleS i, out CDoubleS o);
AStringS opAStringS(AStringS i, out AStringS o);
LStringS opLStringS(LStringS i, out LStringS o);
KStringS opKStringS(KStringS i, out KStringS o);
QStringS opQStringS(QStringS i, out QStringS o);
SStringS opSStringS(SStringS i, out SStringS o);
- CStringS opCStringS(CStringS i, out CStringS o);
AObjectS opAObjectS(AObjectS i, out AObjectS o);
LObjectS opLObjectS(LObjectS i, out LObjectS o);
- CObjectS opCObjectS(CObjectS i, out CObjectS o);
AObjectPrxS opAObjectPrxS(AObjectPrxS i, out AObjectPrxS o);
LObjectPrxS opLObjectPrxS(LObjectPrxS i, out LObjectPrxS o);
KObjectPrxS opKObjectPrxS(KObjectPrxS i, out KObjectPrxS o);
QObjectPrxS opQObjectPrxS(QObjectPrxS i, out QObjectPrxS o);
SObjectPrxS opSObjectPrxS(SObjectPrxS i, out SObjectPrxS o);
- CObjectPrxS opCObjectPrxS(CObjectPrxS i, out CObjectPrxS o);
AStructS opAStructS(AStructS i, out AStructS o);
LStructS opLStructS(LStructS i, out LStructS o);
KStructS opKStructS(KStructS i, out KStructS o);
QStructS opQStructS(QStructS i, out QStructS o);
SStructS opSStructS(SStructS i, out SStructS o);
- CStructS opCStructS(CStructS i, out CStructS o);
AStructSD opAStructSD(AStructSD i, out AStructSD o);
LStructSD opLStructSD(LStructSD i, out LStructSD o);
KStructSD opKStructSD(KStructSD i, out KStructSD o);
QStructSD opQStructSD(QStructSD i, out QStructSD o);
SStructSD opSStructSD(SStructSD i, out SStructSD o);
- CStructSD opCStructSD(CStructSD i, out CStructSD o);
ACVS opACVS(ACVS i, out ACVS o);
LCVS opLCVS(LCVS i, out LCVS o);
- CCVS opCCVS(CCVS i, out CCVS o);
ACRS opACRS(ACRS i, out ACRS o);
LCRS opLCRS(LCRS i, out LCRS o);
- CCRS opCCRS(CCRS i, out CCRS o);
AEnS opAEnS(AEnS i, out AEnS o);
LEnS opLEnS(LEnS i, out LEnS o);
KEnS opKEnS(KEnS i, out KEnS o);
QEnS opQEnS(QEnS i, out QEnS o);
SEnS opSEnS(SEnS i, out SEnS o);
- CEnS opCEnS(CEnS i, out CEnS o);
ACVPrxS opACVPrxS(ACVPrxS i, out ACVPrxS o);
LCVPrxS opLCVPrxS(LCVPrxS i, out LCVPrxS o);
KCVPrxS opKCVPrxS(KCVPrxS i, out KCVPrxS o);
QCVPrxS opQCVPrxS(QCVPrxS i, out QCVPrxS o);
SCVPrxS opSCVPrxS(SCVPrxS i, out SCVPrxS o);
- CCVPrxS opCCVPrxS(CCVPrxS i, out CCVPrxS o);
CustomIntS opCustomIntS(CustomIntS i, out CustomIntS o);
CustomCVS opCustomCVS(CustomCVS i, out CustomCVS o);
diff --git a/csharp/test/Ice/seqMapping/Twoways.cs b/csharp/test/Ice/seqMapping/Twoways.cs
index ef6941e623c..c149abf9f32 100644
--- a/csharp/test/Ice/seqMapping/Twoways.cs
+++ b/csharp/test/Ice/seqMapping/Twoways.cs
@@ -101,21 +101,6 @@ class Twoways
}
{
- CByteS i = new CByteS(_length);
- for(int c = 0; c < _length; ++c)
- {
- i.Add((byte)c);
- }
- CByteS o;
- CByteS r;
-
- r = p.opCByteS(i, out o);
-
- test(Ice.CollectionComparer.Equals(i, o));
- test(Ice.CollectionComparer.Equals(i, r));
- }
-
- {
bool[] i = new bool[_length];
for(int c = 0; c < _length; ++c)
{
@@ -191,21 +176,6 @@ class Twoways
}
{
- CBoolS i = new CBoolS(_length);
- for(int c = 0; c < _length; ++c)
- {
- i.Add(c % 1 == 1);
- }
- CBoolS o;
- CBoolS r;
-
- r = p.opCBoolS(i, out o);
-
- test(Ice.CollectionComparer.Equals(i, o));
- test(Ice.CollectionComparer.Equals(i, r));
- }
-
- {
short[] i = new short[_length];
for(int c = 0; c < _length; ++c)
{
@@ -282,21 +252,6 @@ class Twoways
}
{
- CShortS i = new CShortS(_length);
- for(int c = 0; c < _length; ++c)
- {
- i.Add((short)c);
- }
- CShortS o;
- CShortS r;
-
- r = p.opCShortS(i, out o);
-
- test(Ice.CollectionComparer.Equals(i, o));
- test(Ice.CollectionComparer.Equals(i, r));
- }
-
- {
int[] i = new int[_length];
for(int c = 0; c < _length; ++c)
{
@@ -372,21 +327,6 @@ class Twoways
}
{
- CIntS i = new CIntS(_length);
- for(int c = 0; c < _length; ++c)
- {
- i.Add((int)c);
- }
- CIntS o;
- CIntS r;
-
- r = p.opCIntS(i, out o);
-
- test(Ice.CollectionComparer.Equals(i, o));
- test(Ice.CollectionComparer.Equals(i, r));
- }
-
- {
long[] i = new long[_length];
for(int c = 0; c < _length; ++c)
{
@@ -462,21 +402,6 @@ class Twoways
}
{
- CLongS i = new CLongS(_length);
- for(int c = 0; c < _length; ++c)
- {
- i.Add((long)c);
- }
- CLongS o;
- CLongS r;
-
- r = p.opCLongS(i, out o);
-
- test(Ice.CollectionComparer.Equals(i, o));
- test(Ice.CollectionComparer.Equals(i, r));
- }
-
- {
float[] i = new float[_length];
for(int c = 0; c < _length; ++c)
{
@@ -552,21 +477,6 @@ class Twoways
}
{
- CFloatS i = new CFloatS(_length);
- for(int c = 0; c < _length; ++c)
- {
- i.Add((float)c);
- }
- CFloatS o;
- CFloatS r;
-
- r = p.opCFloatS(i, out o);
-
- test(Ice.CollectionComparer.Equals(i, o));
- test(Ice.CollectionComparer.Equals(i, r));
- }
-
- {
double[] i = new double[_length];
for(int c = 0; c < _length; ++c)
{
@@ -642,21 +552,6 @@ class Twoways
}
{
- CDoubleS i = new CDoubleS(_length);
- for(int c = 0; c < _length; ++c)
- {
- i.Add((double)c);
- }
- CDoubleS o;
- CDoubleS r;
-
- r = p.opCDoubleS(i, out o);
-
- test(Ice.CollectionComparer.Equals(i, o));
- test(Ice.CollectionComparer.Equals(i, r));
- }
-
- {
string[] i = new string[_length];
for(int c = 0; c < _length; ++c)
{
@@ -732,21 +627,6 @@ class Twoways
}
{
- CStringS i = new CStringS(_length);
- for(int c = 0; c < _length; ++c)
- {
- i.Add(c.ToString());
- }
- CStringS o;
- CStringS r;
-
- r = p.opCStringS(i, out o);
-
- test(Ice.CollectionComparer.Equals(i, o));
- test(Ice.CollectionComparer.Equals(i, r));
- }
-
- {
Ice.Object[] i = new CV[_length];
for(int c = 0; c < _length; ++c)
{
@@ -791,28 +671,6 @@ class Twoways
}
{
- CObjectS i = new CObjectS(_length);
- for(int c = 0; c < _length; ++c)
- {
- i.Add(new CV(c));
- }
- CObjectS o;
- CObjectS r;
-
- r = p.opCObjectS(i, out o);
-
- IEnumerator<Ice.Object> eo = (IEnumerator<Ice.Object>)o.GetEnumerator();
- IEnumerator<Ice.Object> er = (IEnumerator<Ice.Object>)r.GetEnumerator();
- foreach(CV obj in i)
- {
- eo.MoveNext();
- er.MoveNext();
- test(obj.i == ((CV)eo.Current).i);
- test(obj.i == ((CV)er.Current).i);
- }
- }
-
- {
Ice.ObjectPrx[] i = new Ice.ObjectPrx[_length];
for(int c = 0; c < _length; ++c)
{
@@ -888,21 +746,6 @@ class Twoways
}
{
- CObjectPrxS i = new CObjectPrxS(_length);
- for(int c = 0; c < _length; ++c)
- {
- i.Add(communicator.stringToProxy(c.ToString()));
- }
- CObjectPrxS o;
- CObjectPrxS r;
-
- r = p.opCObjectPrxS(i, out o);
-
- test(Ice.CollectionComparer.Equals(i, o));
- test(Ice.CollectionComparer.Equals(i, r));
- }
-
- {
S[] i = new S[_length];
for(int c = 0; c < _length; ++c)
{
@@ -979,21 +822,6 @@ class Twoways
}
{
- CStructS i = new CStructS(_length);
- for(int c = 0; c < _length; ++c)
- {
- i.Add(new S(c));
- }
- CStructS o;
- CStructS r;
-
- r = p.opCStructS(i, out o);
-
- test(Ice.CollectionComparer.Equals(i, o));
- test(Ice.CollectionComparer.Equals(i, r));
- }
-
- {
SD[] i = new SD[_length];
for(int c = 0; c < _length; ++c)
{
@@ -1070,21 +898,6 @@ class Twoways
}
{
- CStructSD i = new CStructSD(_length);
- for(int c = 0; c < _length; ++c)
- {
- i.Add(new SD(c));
- }
- CStructSD o;
- CStructSD r;
-
- r = p.opCStructSD(i, out o);
-
- test(Ice.CollectionComparer.Equals(i, o));
- test(Ice.CollectionComparer.Equals(i, r));
- }
-
- {
CV[] i = new CV[_length];
for(int c = 0; c < _length; ++c)
{
@@ -1129,28 +942,6 @@ class Twoways
}
{
- CCVS i = new CCVS(_length);
- for(int c = 0; c < _length; ++c)
- {
- i.Add(new CV(c));
- }
- CCVS o;
- CCVS r;
-
- r = p.opCCVS(i, out o);
-
- IEnumerator<CV> eo = (IEnumerator<CV>)o.GetEnumerator();
- IEnumerator<CV> er = (IEnumerator<CV>)r.GetEnumerator();
- foreach(CV obj in i)
- {
- eo.MoveNext();
- er.MoveNext();
- test(obj.i == eo.Current.i);
- test(obj.i == er.Current.i);
- }
- }
-
- {
CR[] i = new CR[_length];
for(int c = 0; c < _length; ++c)
{
@@ -1195,28 +986,6 @@ class Twoways
}
{
- CCRS i = new CCRS(_length);
- for(int c = 0; c < _length; ++c)
- {
- i.Add(new CR(new CV(c)));
- }
- CCRS o;
- CCRS r;
-
- r = p.opCCRS(i, out o);
-
- IEnumerator<CR> eo = (IEnumerator<CR>)o.GetEnumerator();
- IEnumerator<CR> er = (IEnumerator<CR>)r.GetEnumerator();
- foreach(CR obj in i)
- {
- eo.MoveNext();
- er.MoveNext();
- test(obj.v.i == eo.Current.v.i);
- test(obj.v.i == er.Current.v.i);
- }
- }
-
- {
En[] i = new En[_length];
for(int c = 0; c < _length; ++c)
{
@@ -1292,21 +1061,6 @@ class Twoways
}
{
- CEnS i = new CEnS(_length);
- for(int c = 0; c < _length; ++c)
- {
- i.Add((En)(c % 3));
- }
- CEnS o;
- CEnS r;
-
- r = p.opCEnS(i, out o);
-
- test(Ice.CollectionComparer.Equals(i, o));
- test(Ice.CollectionComparer.Equals(i, r));
- }
-
- {
CVPrx[] i = new CVPrx[_length];
for(int c = 0; c < _length; ++c)
{
@@ -1382,21 +1136,6 @@ class Twoways
}
{
- CCVPrxS i = new CCVPrxS(_length);
- for(int c = 0; c < _length; ++c)
- {
- i.Add(CVPrxHelper.uncheckedCast(communicator.stringToProxy(c.ToString())));
- }
- CCVPrxS o;
- CCVPrxS r;
-
- r = p.opCCVPrxS(i, out o);
-
- test(Ice.CollectionComparer.Equals(i, o));
- test(Ice.CollectionComparer.Equals(i, r));
- }
-
- {
Custom<int> i = new Custom<int>();
for(int c = 0; c < _length; ++c)
{
@@ -1504,7 +1243,6 @@ class Twoways
}
}
-#if !COMPACT && !SILVERLIGHT
{
Serialize.Small i = null;
Serialize.Small o;
@@ -1612,6 +1350,5 @@ class Twoways
// OK, talking to non-C# server.
}
}
-#endif
}
}
diff --git a/csharp/test/Ice/seqMapping/TwowaysAMI.cs b/csharp/test/Ice/seqMapping/TwowaysAMI.cs
index b722ad5d270..c50306991f6 100644
--- a/csharp/test/Ice/seqMapping/TwowaysAMI.cs
+++ b/csharp/test/Ice/seqMapping/TwowaysAMI.cs
@@ -108,16 +108,6 @@ public class TwowaysAMI
callback.called();
}
- public void opCByteSI(Ice.AsyncResult result)
- {
- CByteS i = (CByteS)result.AsyncState;
- CByteS o;
- CByteS r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opCByteS(out o, result);
- test(Ice.CollectionComparer.Equals(i, o));
- test(Ice.CollectionComparer.Equals(i, r));
- callback.called();
- }
-
public void opABoolSI(Ice.AsyncResult result)
{
bool[] i = (bool[])result.AsyncState;
@@ -168,16 +158,6 @@ public class TwowaysAMI
callback.called();
}
- public void opCBoolSI(Ice.AsyncResult result)
- {
- CBoolS i = (CBoolS)result.AsyncState;
- CBoolS o;
- CBoolS r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opCBoolS(out o, result);
- test(Ice.CollectionComparer.Equals(i, o));
- test(Ice.CollectionComparer.Equals(i, r));
- callback.called();
- }
-
public void opAShortSI(Ice.AsyncResult result)
{
short[] i = (short[])result.AsyncState;
@@ -228,16 +208,6 @@ public class TwowaysAMI
callback.called();
}
- public void opCShortSI(Ice.AsyncResult result)
- {
- CShortS i = (CShortS)result.AsyncState;
- CShortS o;
- CShortS r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opCShortS(out o, result);
- test(Ice.CollectionComparer.Equals(i, o));
- test(Ice.CollectionComparer.Equals(i, r));
- callback.called();
- }
-
public void opAIntSI(Ice.AsyncResult result)
{
int[] i = (int[])result.AsyncState;
@@ -288,16 +258,6 @@ public class TwowaysAMI
callback.called();
}
- public void opCIntSI(Ice.AsyncResult result)
- {
- CIntS i = (CIntS)result.AsyncState;
- CIntS o;
- CIntS r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opCIntS(out o, result);
- test(Ice.CollectionComparer.Equals(i, o));
- test(Ice.CollectionComparer.Equals(i, r));
- callback.called();
- }
-
public void opALongSI(Ice.AsyncResult result)
{
long[] i = (long[])result.AsyncState;
@@ -348,16 +308,6 @@ public class TwowaysAMI
callback.called();
}
- public void opCLongSI(Ice.AsyncResult result)
- {
- CLongS i = (CLongS)result.AsyncState;
- CLongS o;
- CLongS r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opCLongS(out o, result);
- test(Ice.CollectionComparer.Equals(i, o));
- test(Ice.CollectionComparer.Equals(i, r));
- callback.called();
- }
-
public void opAFloatSI(Ice.AsyncResult result)
{
float[] i = (float[])result.AsyncState;
@@ -408,16 +358,6 @@ public class TwowaysAMI
callback.called();
}
- public void opCFloatSI(Ice.AsyncResult result)
- {
- CFloatS i = (CFloatS)result.AsyncState;
- CFloatS o;
- CFloatS r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opCFloatS(out o, result);
- test(Ice.CollectionComparer.Equals(i, o));
- test(Ice.CollectionComparer.Equals(i, r));
- callback.called();
- }
-
public void opADoubleSI(Ice.AsyncResult result)
{
double[] i = (double[])result.AsyncState;
@@ -468,16 +408,6 @@ public class TwowaysAMI
callback.called();
}
- public void opCDoubleSI(Ice.AsyncResult result)
- {
- CDoubleS i = (CDoubleS)result.AsyncState;
- CDoubleS o;
- CDoubleS r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opCDoubleS(out o, result);
- test(Ice.CollectionComparer.Equals(i, o));
- test(Ice.CollectionComparer.Equals(i, r));
- callback.called();
- }
-
public void opAStringSI(Ice.AsyncResult result)
{
string[] i = (string[])result.AsyncState;
@@ -528,16 +458,6 @@ public class TwowaysAMI
callback.called();
}
- public void opCStringSI(Ice.AsyncResult result)
- {
- CStringS i = (CStringS)result.AsyncState;
- CStringS o;
- CStringS r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opCStringS(out o, result);
- test(Ice.CollectionComparer.Equals(i, o));
- test(Ice.CollectionComparer.Equals(i, r));
- callback.called();
- }
-
public void opAObjectSI(Ice.AsyncResult result)
{
Ice.Object[] i = (Ice.Object[])result.AsyncState;
@@ -572,23 +492,6 @@ public class TwowaysAMI
callback.called();
}
- public void opCObjectSI(Ice.AsyncResult result)
- {
- CObjectS i = (CObjectS)result.AsyncState;
- CObjectS o;
- CObjectS r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opCObjectS(out o, result);
- IEnumerator<Ice.Object> eo = o.GetEnumerator();
- IEnumerator<Ice.Object> er = r.GetEnumerator();
- foreach(CV obj in i)
- {
- eo.MoveNext();
- er.MoveNext();
- test(obj.i == ((CV)eo.Current).i);
- test(obj.i == ((CV)er.Current).i);
- }
- callback.called();
- }
-
public void opAObjectPrxSI(Ice.AsyncResult result)
{
Ice.ObjectPrx[] i = (Ice.ObjectPrx[])result.AsyncState;
@@ -640,16 +543,6 @@ public class TwowaysAMI
callback.called();
}
- public void opCObjectPrxSI(Ice.AsyncResult result)
- {
- CObjectPrxS i = (CObjectPrxS)result.AsyncState;
- CObjectPrxS o;
- CObjectPrxS r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opCObjectPrxS(out o, result);
- test(Ice.CollectionComparer.Equals(i, o));
- test(Ice.CollectionComparer.Equals(i, r));
- callback.called();
- }
-
public void opAStructSI(Ice.AsyncResult result)
{
S[] i = (S[])result.AsyncState;
@@ -700,16 +593,6 @@ public class TwowaysAMI
callback.called();
}
- public void opCStructSI(Ice.AsyncResult result)
- {
- CStructS i = (CStructS)result.AsyncState;
- CStructS o;
- CStructS r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opCStructS(out o, result);
- test(Ice.CollectionComparer.Equals(i, o));
- test(Ice.CollectionComparer.Equals(i, r));
- callback.called();
- }
-
public void opAStructSDI(Ice.AsyncResult result)
{
SD[] i = (SD[])result.AsyncState;
@@ -760,16 +643,6 @@ public class TwowaysAMI
callback.called();
}
- public void opCStructSDI(Ice.AsyncResult result)
- {
- CStructSD i = (CStructSD)result.AsyncState;
- CStructSD o;
- CStructSD r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opCStructSD(out o, result);
- test(Ice.CollectionComparer.Equals(i, o));
- test(Ice.CollectionComparer.Equals(i, r));
- callback.called();
- }
-
public void opACVSI(Ice.AsyncResult result)
{
CV[] i = (CV[])result.AsyncState;
@@ -804,23 +677,6 @@ public class TwowaysAMI
callback.called();
}
- public void opCCVSI(Ice.AsyncResult result)
- {
- CCVS i = (CCVS)result.AsyncState;
- CCVS o;
- CCVS r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opCCVS(out o, result);
- IEnumerator<CV> eo = (IEnumerator<CV>)o.GetEnumerator();
- IEnumerator<CV> er = (IEnumerator<CV>)r.GetEnumerator();
- foreach(CV obj in i)
- {
- eo.MoveNext();
- er.MoveNext();
- test(obj.i == ((CV)eo.Current).i);
- test(obj.i == ((CV)er.Current).i);
- }
- callback.called();
- }
-
public void opACVPrxSI(Ice.AsyncResult result)
{
CVPrx[] i = (CVPrx[])result.AsyncState;
@@ -872,16 +728,6 @@ public class TwowaysAMI
callback.called();
}
- public void opCCVPrxSI(Ice.AsyncResult result)
- {
- CCVPrxS i = (CCVPrxS)result.AsyncState;
- CCVPrxS o;
- CCVPrxS r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opCCVPrxS(out o, result);
- test(Ice.CollectionComparer.Equals(i, o));
- test(Ice.CollectionComparer.Equals(i, r));
- callback.called();
- }
-
public void opACRSI(Ice.AsyncResult result)
{
CR[] i = (CR[])result.AsyncState;
@@ -916,23 +762,6 @@ public class TwowaysAMI
callback.called();
}
- public void opCCRSI(Ice.AsyncResult result)
- {
- CCRS i = (CCRS)result.AsyncState;
- CCRS o;
- CCRS r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opCCRS(out o, result);
- IEnumerator<CR> eo = (IEnumerator<CR>)o.GetEnumerator();
- IEnumerator<CR> er = (IEnumerator<CR>)r.GetEnumerator();
- foreach(CR obj in i)
- {
- eo.MoveNext();
- er.MoveNext();
- test(obj.v.i == ((CR)eo.Current).v.i);
- test(obj.v.i == ((CR)er.Current).v.i);
- }
- callback.called();
- }
-
public void opAEnSI(Ice.AsyncResult result)
{
En[] i = (En[])result.AsyncState;
@@ -983,16 +812,6 @@ public class TwowaysAMI
callback.called();
}
- public void opCEnSI(Ice.AsyncResult result)
- {
- CEnS i = (CEnS)result.AsyncState;
- CEnS o;
- CEnS r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opCEnS(out o, result);
- test(Ice.CollectionComparer.Equals(i, o));
- test(Ice.CollectionComparer.Equals(i, r));
- callback.called();
- }
-
public void opCustomIntSI(Ice.AsyncResult result)
{
Custom<int> i = (Custom<int>)result.AsyncState;
@@ -1070,7 +889,6 @@ public class TwowaysAMI
callback.called();
}
-#if !COMPACT && !SILVERLIGHT
public void opSerialSmallCSharpNullI(Ice.AsyncResult result)
{
try
@@ -1166,7 +984,6 @@ public class TwowaysAMI
// OK, talking to non-C# server.
}
}
-#endif
public virtual void check()
{
@@ -1176,7 +993,6 @@ public class TwowaysAMI
private CallbackBase callback = new CallbackBase();
}
-
static int _length = 100;
internal static void twowaysAMI(Ice.Communicator communicator, Test.MyClassPrx p)
@@ -1242,18 +1058,6 @@ public class TwowaysAMI
}
{
- CByteS i = new CByteS();
- for(int c = 0; c < _length; ++c)
- {
- i.Add((byte)c);
- }
-
- Callback cb = new Callback();
- p.begin_opCByteS(i, null, cb.opCByteSI, i);
- cb.check();
- }
-
- {
bool[] i = new bool[_length];
for(int c = 0; c < _length; ++c)
{
@@ -1314,18 +1118,6 @@ public class TwowaysAMI
}
{
- CBoolS i = new CBoolS();
- for(int c = 0; c < _length; ++c)
- {
- i.Add(c % 1 == 1);
- }
-
- Callback cb = new Callback();
- p.begin_opCBoolS(i, null, cb.opCBoolSI, i);
- cb.check();
- }
-
- {
short[] i = new short[_length];
for(int c = 0; c < _length; ++c)
{
@@ -1386,18 +1178,6 @@ public class TwowaysAMI
}
{
- CShortS i = new CShortS();
- for(int c = 0; c < _length; ++c)
- {
- i.Add((short)c);
- }
-
- Callback cb = new Callback();
- p.begin_opCShortS(i, null, cb.opCShortSI, i);
- cb.check();
- }
-
- {
int[] i = new int[_length];
for(int c = 0; c < _length; ++c)
{
@@ -1458,18 +1238,6 @@ public class TwowaysAMI
}
{
- CIntS i = new CIntS();
- for(int c = 0; c < _length; ++c)
- {
- i.Add((int)c);
- }
-
- Callback cb = new Callback();
- p.begin_opCIntS(i, null, cb.opCIntSI, i);
- cb.check();
- }
-
- {
long[] i = new long[_length];
for(int c = 0; c < _length; ++c)
{
@@ -1530,18 +1298,6 @@ public class TwowaysAMI
}
{
- CLongS i = new CLongS();
- for(int c = 0; c < _length; ++c)
- {
- i.Add((long)c);
- }
-
- Callback cb = new Callback();
- p.begin_opCLongS(i, null, cb.opCLongSI, i);
- cb.check();
- }
-
- {
float[] i = new float[_length];
for(int c = 0; c < _length; ++c)
{
@@ -1602,18 +1358,6 @@ public class TwowaysAMI
}
{
- CFloatS i = new CFloatS();
- for(int c = 0; c < _length; ++c)
- {
- i.Add((float)c);
- }
-
- Callback cb = new Callback();
- p.begin_opCFloatS(i, null, cb.opCFloatSI, i);
- cb.check();
- }
-
- {
double[] i = new double[_length];
for(int c = 0; c < _length; ++c)
{
@@ -1674,18 +1418,6 @@ public class TwowaysAMI
}
{
- CDoubleS i = new CDoubleS();
- for(int c = 0; c < _length; ++c)
- {
- i.Add((double)c);
- }
-
- Callback cb = new Callback();
- p.begin_opCDoubleS(i, null, cb.opCDoubleSI, i);
- cb.check();
- }
-
- {
string[] i = new string[_length];
for(int c = 0; c < _length; ++c)
{
@@ -1746,18 +1478,6 @@ public class TwowaysAMI
}
{
- CStringS i = new CStringS();
- for(int c = 0; c < _length; ++c)
- {
- i.Add(c.ToString());
- }
-
- Callback cb = new Callback();
- p.begin_opCStringS(i, null, cb.opCStringSI, i);
- cb.check();
- }
-
- {
Ice.Object[] i = new Ice.Object[_length];
for(int c = 0; c < _length; ++c)
{
@@ -1782,18 +1502,6 @@ public class TwowaysAMI
}
{
- CObjectS i = new CObjectS();
- for(int c = 0; c < _length; ++c)
- {
- i.Add(new CV(c));
- }
-
- Callback cb = new Callback();
- p.begin_opCObjectS(i, null, cb.opCObjectSI, i);
- cb.check();
- }
-
- {
Ice.ObjectPrx[] i = new Ice.ObjectPrx[_length];
for(int c = 0; c < _length; ++c)
{
@@ -1854,18 +1562,6 @@ public class TwowaysAMI
}
{
- CObjectPrxS i = new CObjectPrxS();
- for(int c = 0; c < _length; ++c)
- {
- i.Add(communicator.stringToProxy(c.ToString()));
- }
-
- Callback cb = new Callback();
- p.begin_opCObjectPrxS(i, null, cb.opCObjectPrxSI, i);
- cb.check();
- }
-
- {
S[] i = new S[_length];
for(int c = 0; c < _length; ++c)
{
@@ -1926,18 +1622,6 @@ public class TwowaysAMI
}
{
- CStructS i = new CStructS();
- for(int c = 0; c < _length; ++c)
- {
- i.Add(new S(c));
- }
-
- Callback cb = new Callback();
- p.begin_opCStructS(i, null, cb.opCStructSI, i);
- cb.check();
- }
-
- {
CV[] i = new CV[_length];
for(int c = 0; c < _length; ++c)
{
@@ -1962,18 +1646,6 @@ public class TwowaysAMI
}
{
- CCVS i = new CCVS();
- for(int c = 0; c < _length; ++c)
- {
- i.Add(new CV(c));
- }
-
- Callback cb = new Callback();
- p.begin_opCCVS(i, null, cb.opCCVSI, i);
- cb.check();
- }
-
- {
CVPrx[] i = new CVPrx[_length];
for(int c = 0; c < _length; ++c)
{
@@ -2034,18 +1706,6 @@ public class TwowaysAMI
}
{
- CCVPrxS i = new CCVPrxS();
- for(int c = 0; c < _length; ++c)
- {
- i.Add(CVPrxHelper.uncheckedCast(communicator.stringToProxy(c.ToString())));
- }
-
- Callback cb = new Callback();
- p.begin_opCCVPrxS(i, null, cb.opCCVPrxSI, i);
- cb.check();
- }
-
- {
CR[] i = new CR[_length];
for(int c = 0; c < _length; ++c)
{
@@ -2070,18 +1730,6 @@ public class TwowaysAMI
}
{
- CCRS i = new CCRS();
- for(int c = 0; c < _length; ++c)
- {
- i.Add(new CR(new CV(c)));
- }
-
- Callback cb = new Callback();
- p.begin_opCCRS(i, null, cb.opCCRSI, i);
- cb.check();
- }
-
- {
En[] i = new En[_length];
for(int c = 0; c < _length; ++c)
{
@@ -2142,18 +1790,6 @@ public class TwowaysAMI
}
{
- CEnS i = new CEnS();
- for(int c = 0; c < _length; ++c)
- {
- i.Add((En)(c % 3));
- }
-
- Callback cb = new Callback();
- p.begin_opCEnS(i, null, cb.opCEnSI, i);
- cb.check();
- }
-
- {
Custom<int> i = new Custom<int>();
for(int c = 0; c < _length; ++c)
{
@@ -2211,7 +1847,6 @@ public class TwowaysAMI
cb.check();
}
-#if !COMPACT && !SILVERLIGHT
{
Serialize.Small i = null;
@@ -2258,6 +1893,5 @@ public class TwowaysAMI
p.begin_opSerialStructCSharp(i, null, cb.opSerialStructCSharpI, i);
cb.check();
}
-#endif
}
}
diff --git a/csharp/test/Ice/serialize/AllTests.cs b/csharp/test/Ice/serialize/AllTests.cs
index fe2afc2ee54..66f3e11ef0c 100644
--- a/csharp/test/Ice/serialize/AllTests.cs
+++ b/csharp/test/Ice/serialize/AllTests.cs
@@ -7,7 +7,6 @@
//
// **********************************************************************
-using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
@@ -15,10 +14,6 @@ using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
using Test;
-#if SILVERLIGHT
-using System.Windows.Controls;
-#endif
-
public class AllTests : TestCommon.TestApp
{
//
@@ -67,20 +62,7 @@ public class AllTests : TestCommon.TestApp
return true;
}
-#if SILVERLIGHT
- public override Ice.InitializationData initData()
- {
- Ice.InitializationData initData = new Ice.InitializationData();
- initData.properties = Ice.Util.createProperties();
- initData.properties.setProperty("Ice.FactoryAssemblies", "serialize,version=1.0.0.0");
- return initData;
- }
-
- override
- public void run(Ice.Communicator communicator)
-#else
static public int run(Ice.Communicator communicator)
-#endif
{
Write("testing serialization... ");
Flush();
@@ -96,12 +78,10 @@ public class AllTests : TestCommon.TestApp
ex.vsll = new LinkedList<ValStruct>();
ex.vssk = new Stack<ValStruct>();
ex.vsq = new Queue<ValStruct>();
- ex.vsc = new ValStructCollection();
ex.isd = new Dictionary<int, string>();
ex.ivd = new Dictionary<int, ValStruct>();
ex.ipd = null;
ex.issd = new SortedDictionary<int, string>();
- ex.isdc = new IntStringDC();
ex.optName = new Ice.Optional<string>();
ex.optInt = new Ice.Optional<int>();
ex.optValStruct = new Ice.Optional<ValStruct>();
@@ -128,8 +108,6 @@ public class AllTests : TestCommon.TestApp
ex.vssk.Push(ex.vs);
ex.vsq = new Queue<ValStruct>();
ex.vsq.Enqueue(ex.vs);
- ex.vsc = new ValStructCollection();
- ex.vsc.Add(ex.vs);
ex.isd = new Dictionary<int, string>();
ex.isd[5] = "five";
ex.ivd = new Dictionary<int, ValStruct>();
@@ -137,8 +115,6 @@ public class AllTests : TestCommon.TestApp
ex.ipd = new Dictionary<int, MyClassPrx>();
ex.issd = new SortedDictionary<int, string>();
ex.issd[3] = "three";
- ex.isdc = new IntStringDC();
- ex.isdc[4] = "four";
ex.optName = new Ice.Optional<string>("MyException");
ex.optInt = new Ice.Optional<int>(99);
ex.optValStruct = new Ice.Optional<ValStruct>(ex.vs);
@@ -196,9 +172,7 @@ public class AllTests : TestCommon.TestApp
test(c2.s.Equals(c.s));
WriteLine("ok");
-#if !SILVERLIGHT
return 0;
-#endif
}
private static T inOut<T>(T o)
diff --git a/csharp/test/Ice/serialize/Client.cs b/csharp/test/Ice/serialize/Client.cs
index 91c6ad3d0eb..0fb56692d3e 100644
--- a/csharp/test/Ice/serialize/Client.cs
+++ b/csharp/test/Ice/serialize/Client.cs
@@ -8,10 +8,7 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
-using System.Collections;
-using System.Collections.Generic;
[assembly: CLSCompliant(true)]
@@ -29,18 +26,10 @@ public class Client
try
{
Ice.InitializationData data = new Ice.InitializationData();
-#if COMPACT
- //
- // When using Ice for .NET Compact Framework, we need to specify
- // the assembly so that Ice can locate classes and exceptions.
- //
- data.properties = Ice.Util.createProperties();
- data.properties.setProperty("Ice.FactoryAssemblies", "client");
-#endif
communicator = Ice.Util.initialize(ref args, data);
status = AllTests.run(communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
Console.Error.WriteLine(ex);
status = 1;
diff --git a/csharp/test/Ice/serialize/Test.ice b/csharp/test/Ice/serialize/Test.ice
index dbe3933510b..a2c2a96c17f 100644
--- a/csharp/test/Ice/serialize/Test.ice
+++ b/csharp/test/Ice/serialize/Test.ice
@@ -53,16 +53,12 @@ sequence<ValStruct> ValStructLinkedList;
sequence<ValStruct> ValStructStack;
["clr:generic:Queue"]
sequence<ValStruct> ValStructQueue;
-["clr:collection"]
-sequence<ValStruct> ValStructCollection;
dictionary<int, string> IntStringD;
dictionary<int, ValStruct> IntValStructD;
dictionary<int, MyClass*> IntProxyD;
["clr:generic:SortedDictionary"]
dictionary<int, string> IntStringSD;
-["clr:collection"]
-dictionary<int, string> IntStringDC;
class Base
{
@@ -96,13 +92,11 @@ exception MyException
ValStructLinkedList vsll;
ValStructStack vssk;
ValStructQueue vsq;
- ValStructCollection vsc;
IntStringD isd;
IntValStructD ivd;
IntProxyD ipd;
IntStringSD issd;
- IntStringDC isdc;
optional(1) string optName;
optional(2) int optInt;
diff --git a/csharp/test/Ice/servantLocator/AllTests.cs b/csharp/test/Ice/servantLocator/AllTests.cs
index 8a6344b6b3d..f52a592e4de 100644
--- a/csharp/test/Ice/servantLocator/AllTests.cs
+++ b/csharp/test/Ice/servantLocator/AllTests.cs
@@ -11,10 +11,6 @@ using System;
using Test;
using Ice;
-#if SILVERLIGHT
-using System.Windows.Controls;
-#endif
-
public class AllTests : TestCommon.TestApp
{
public static void testExceptions(TestIntfPrx obj)
@@ -198,20 +194,7 @@ public class AllTests : TestCommon.TestApp
}
}
-#if SILVERLIGHT
- public override Ice.InitializationData initData()
- {
- Ice.InitializationData initData = new Ice.InitializationData();
- initData.properties = Ice.Util.createProperties();
- initData.properties.setProperty("Ice.FactoryAssemblies", "servantLocator,version=1.0.0.0");
- return initData;
- }
-
- override
- public void run(Ice.Communicator communicator)
-#else
public static TestIntfPrx allTests(Ice.Communicator communicator)
-#endif
{
Write("testing stringToProxy... ");
Flush();
@@ -372,10 +355,6 @@ public class AllTests : TestCommon.TestApp
{
test(false);
}
-#if SILVERLIGHT
- obj.shutdown();
-#else
return obj;
-#endif
}
}
diff --git a/csharp/test/Ice/servantLocator/Client.cs b/csharp/test/Ice/servantLocator/Client.cs
index 602afa61b39..b6de8d4f0fc 100644
--- a/csharp/test/Ice/servantLocator/Client.cs
+++ b/csharp/test/Ice/servantLocator/Client.cs
@@ -9,7 +9,6 @@
using Test;
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -33,15 +32,6 @@ public class Client
public static int Main(string[] args)
{
Ice.InitializationData data = new Ice.InitializationData();
-#if COMPACT
- //
- // When using Ice for .NET Compact Framework, we need to specify
- // the assembly so that Ice can locate classes and exceptions.
- //
- data.properties = Ice.Util.createProperties();
- data.properties.setProperty("Ice.FactoryAssemblies", "client");
-#endif
-
App app = new App();
return app.main(args, data);
}
diff --git a/csharp/test/Ice/servantLocator/Collocated.cs b/csharp/test/Ice/servantLocator/Collocated.cs
index 32caa46854a..66e39874c4a 100644
--- a/csharp/test/Ice/servantLocator/Collocated.cs
+++ b/csharp/test/Ice/servantLocator/Collocated.cs
@@ -7,9 +7,7 @@
//
// **********************************************************************
-using Test;
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -42,14 +40,6 @@ public class Collocated
public static int Main(string[] args)
{
Ice.InitializationData data = new Ice.InitializationData();
-#if COMPACT
- //
- // When using Ice for .NET Compact Framework, we need to specify
- // the assembly so that Ice can locate classes and exceptions.
- //
- data.properties = Ice.Util.createProperties();
- data.properties.setProperty("Ice.FactoryAssemblies", "collocated");
-#endif
App app = new App();
return app.main(args, data);
}
diff --git a/csharp/test/Ice/servantLocator/ServantLocatorI.cs b/csharp/test/Ice/servantLocator/ServantLocatorI.cs
index a2d5d7f64b4..a51a02e8cac 100644
--- a/csharp/test/Ice/servantLocator/ServantLocatorI.cs
+++ b/csharp/test/Ice/servantLocator/ServantLocatorI.cs
@@ -36,7 +36,7 @@ public sealed class ServantLocatorI : Ice.ServantLocator
}
}
- public Ice.Object locate(Ice.Current current, out System.Object cookie)
+ public Ice.Object locate(Ice.Current current, out object cookie)
{
lock(this)
{
diff --git a/csharp/test/Ice/servantLocator/Server.cs b/csharp/test/Ice/servantLocator/Server.cs
index ebd19dae615..6c5d86bfc60 100644
--- a/csharp/test/Ice/servantLocator/Server.cs
+++ b/csharp/test/Ice/servantLocator/Server.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
diff --git a/csharp/test/Ice/slicing/exceptions/AllTests.cs b/csharp/test/Ice/slicing/exceptions/AllTests.cs
index 0d3122f210c..1d0038283c3 100644
--- a/csharp/test/Ice/slicing/exceptions/AllTests.cs
+++ b/csharp/test/Ice/slicing/exceptions/AllTests.cs
@@ -12,10 +12,6 @@ using System.Diagnostics;
using System.Threading;
using Test;
-#if SILVERLIGHT
-using System.Windows.Controls;
-#endif
-
public class AllTests : TestCommon.TestApp
{
private class Callback
@@ -31,7 +27,7 @@ public class AllTests : TestCommon.TestApp
{
while(!_called)
{
- System.Threading.Monitor.Wait(this);
+ Monitor.Wait(this);
}
_called = false;
@@ -44,7 +40,7 @@ public class AllTests : TestCommon.TestApp
{
Debug.Assert(!_called);
_called = true;
- System.Threading.Monitor.Pulse(this);
+ Monitor.Pulse(this);
}
}
@@ -94,19 +90,7 @@ public class AllTests : TestCommon.TestApp
}
}
-#if SILVERLIGHT
- public override Ice.InitializationData initData()
- {
- Ice.InitializationData initData = new Ice.InitializationData();
- initData.properties = Ice.Util.createProperties();
- initData.properties.setProperty("Ice.FactoryAssemblies", "exceptions,version=1.0.0.0");
- return initData;
- }
-
- public override void run(Ice.Communicator communicator)
-#else
public static TestIntfPrx allTests(Ice.Communicator communicator, bool collocated)
-#endif
{
Write("testing stringToProxy... ");
Flush();
@@ -829,10 +813,6 @@ public class AllTests : TestCommon.TestApp
}
WriteLine("ok");
- //
- // No server side in Silverlight
- //
-#if !SILVERLIGHT
Write("preserved exceptions... ");
Flush();
{
@@ -955,12 +935,6 @@ public class AllTests : TestCommon.TestApp
adapter.destroy();
}
WriteLine("ok");
-#endif
-
-#if SILVERLIGHT
- testPrx.shutdown();
-#else
return testPrx;
-#endif
}
}
diff --git a/csharp/test/Ice/slicing/exceptions/Client.cs b/csharp/test/Ice/slicing/exceptions/Client.cs
index a0bdc939c23..a89ce7c02e1 100644
--- a/csharp/test/Ice/slicing/exceptions/Client.cs
+++ b/csharp/test/Ice/slicing/exceptions/Client.cs
@@ -8,7 +8,7 @@
// **********************************************************************
using Test;
-using System.Diagnostics;
+using System;
public class Client
{
@@ -27,20 +27,12 @@ public class Client
try
{
Ice.InitializationData data = new Ice.InitializationData();
-#if COMPACT
- //
- // When using Ice for .NET Compact Framework, we need to specify
- // the assembly so that Ice can locate classes and exceptions.
- //
- data.properties = Ice.Util.createProperties();
- data.properties.setProperty("Ice.FactoryAssemblies", "client");
-#endif
communicator = Ice.Util.initialize(ref args, data);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
@@ -52,7 +44,7 @@ public class Client
}
catch(Ice.LocalException ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
}
diff --git a/csharp/test/Ice/slicing/exceptions/Server.cs b/csharp/test/Ice/slicing/exceptions/Server.cs
index 789222f8fac..bdd28e784e0 100644
--- a/csharp/test/Ice/slicing/exceptions/Server.cs
+++ b/csharp/test/Ice/slicing/exceptions/Server.cs
@@ -7,7 +7,7 @@
//
// **********************************************************************
-using System.Diagnostics;
+using System;
public class Server
{
@@ -32,20 +32,12 @@ public class Server
try
{
Ice.InitializationData data = new Ice.InitializationData();
-#if COMPACT
- //
- // When using Ice for .NET Compact Framework, we need to specify
- // the assembly so that Ice can locate classes and exceptions.
- //
- data.properties = Ice.Util.createProperties();
- data.properties.setProperty("Ice.FactoryAssemblies", "server");
-#endif
communicator = Ice.Util.initialize(ref args, data);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
@@ -57,7 +49,7 @@ public class Server
}
catch(Ice.LocalException ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
}
diff --git a/csharp/test/Ice/slicing/exceptions/ServerAMD.cs b/csharp/test/Ice/slicing/exceptions/ServerAMD.cs
index 3477ea0a5bf..bdd28e784e0 100644
--- a/csharp/test/Ice/slicing/exceptions/ServerAMD.cs
+++ b/csharp/test/Ice/slicing/exceptions/ServerAMD.cs
@@ -7,7 +7,7 @@
//
// **********************************************************************
-using System.Diagnostics;
+using System;
public class Server
{
@@ -32,20 +32,12 @@ public class Server
try
{
Ice.InitializationData data = new Ice.InitializationData();
-#if COMPACT
- //
- // When using Ice for .NET Compact Framework, we need to specify
- // the assembly so that Ice can locate classes and exceptions.
- //
- data.properties = Ice.Util.createProperties();
- data.properties.setProperty("Ice.FactoryAssemblies", "serveramd");
-#endif
communicator = Ice.Util.initialize(ref args, data);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
@@ -57,7 +49,7 @@ public class Server
}
catch(Ice.LocalException ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
}
diff --git a/csharp/test/Ice/slicing/objects/AllTests.cs b/csharp/test/Ice/slicing/objects/AllTests.cs
index da4604f28af..d4076b64185 100644
--- a/csharp/test/Ice/slicing/objects/AllTests.cs
+++ b/csharp/test/Ice/slicing/objects/AllTests.cs
@@ -10,13 +10,8 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
-using System.Threading;
using Test;
-#if SILVERLIGHT
-using System.Windows.Controls;
-#endif
-
public class AllTests : TestCommon.TestApp
{
private class Callback
@@ -81,20 +76,7 @@ public class AllTests : TestCommon.TestApp
return null;
}
-#if SILVERLIGHT
- public override Ice.InitializationData initData()
- {
- Ice.InitializationData initData = new Ice.InitializationData();
- initData.properties = Ice.Util.createProperties();
- initData.properties.setProperty("Ice.FactoryAssemblies", "objects,version=1.0.0.0");
- return initData;
- }
-
- override
- public void run(Ice.Communicator communicator)
-#else
public static TestIntfPrx allTests(Ice.Communicator communicator, bool collocated)
-#endif
{
Write("testing stringToProxy... ");
Flush();
@@ -1414,16 +1396,16 @@ public class AllTests : TestCommon.TestApp
ss2d3.pd3 = ss1d1;
SS1 ss1 = new SS1();
- ss1.s = new BSeq(3);
- ss1.s.Add(ss1b);
- ss1.s.Add(ss1d1);
- ss1.s.Add(ss1d3);
+ ss1.s = new B[3];
+ ss1.s[0] = ss1b;
+ ss1.s[1] = ss1d1;
+ ss1.s[2] = ss1d3;
SS2 ss2 = new SS2();
- ss2.s = new BSeq(3);
- ss2.s.Add(ss2b);
- ss2.s.Add(ss2d1);
- ss2.s.Add(ss2d3);
+ ss2.s = new B[3];
+ ss2.s[0] = ss2b;
+ ss2.s[1] = ss2d1;
+ ss2.s[2] = ss2d3;
ss = testPrx.sequenceTest(ss1, ss2);
}
@@ -1502,16 +1484,16 @@ public class AllTests : TestCommon.TestApp
ss2d3.pd3 = ss1d1;
SS1 ss1 = new SS1();
- ss1.s = new BSeq();
- ss1.s.Add(ss1b);
- ss1.s.Add(ss1d1);
- ss1.s.Add(ss1d3);
+ ss1.s = new B[3];
+ ss1.s[0] = ss1b;
+ ss1.s[1] = ss1d1;
+ ss1.s[2] = ss1d3;
SS2 ss2 = new SS2();
- ss2.s = new BSeq();
- ss2.s.Add(ss2b);
- ss2.s.Add(ss2d1);
- ss2.s.Add(ss2d3);
+ ss2.s = new B[3];
+ ss2.s[0] = ss2b;
+ ss2.s[1] = ss2d1;
+ ss2.s[2] = ss2d3;
Callback cb = new Callback();
testPrx.begin_sequenceTest(ss1, ss2).whenCompleted(
@@ -2429,11 +2411,6 @@ public class AllTests : TestCommon.TestApp
}
WriteLine("ok");
-
-#if SILVERLIGHT
- testPrx.shutdown();
-#else
return testPrx;
-#endif
}
}
diff --git a/csharp/test/Ice/slicing/objects/Client.cs b/csharp/test/Ice/slicing/objects/Client.cs
index a0bdc939c23..a89ce7c02e1 100644
--- a/csharp/test/Ice/slicing/objects/Client.cs
+++ b/csharp/test/Ice/slicing/objects/Client.cs
@@ -8,7 +8,7 @@
// **********************************************************************
using Test;
-using System.Diagnostics;
+using System;
public class Client
{
@@ -27,20 +27,12 @@ public class Client
try
{
Ice.InitializationData data = new Ice.InitializationData();
-#if COMPACT
- //
- // When using Ice for .NET Compact Framework, we need to specify
- // the assembly so that Ice can locate classes and exceptions.
- //
- data.properties = Ice.Util.createProperties();
- data.properties.setProperty("Ice.FactoryAssemblies", "client");
-#endif
communicator = Ice.Util.initialize(ref args, data);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
@@ -52,7 +44,7 @@ public class Client
}
catch(Ice.LocalException ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
}
diff --git a/csharp/test/Ice/slicing/objects/Server.cs b/csharp/test/Ice/slicing/objects/Server.cs
index cfd418e3861..54109e72e98 100644
--- a/csharp/test/Ice/slicing/objects/Server.cs
+++ b/csharp/test/Ice/slicing/objects/Server.cs
@@ -7,7 +7,7 @@
//
// **********************************************************************
-using System.Diagnostics;
+using System;
public class Server
{
@@ -32,20 +32,12 @@ public class Server
try
{
Ice.InitializationData data = new Ice.InitializationData();
-#if COMPACT
- //
- // When using Ice for .NET Compact Framework, we need to specify
- // the assembly so that Ice can locate classes and exceptions.
- //
- data.properties = Ice.Util.createProperties();
- data.properties.setProperty("Ice.FactoryAssemblies", "server");
-#endif
communicator = Ice.Util.initialize(ref args, data);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
@@ -57,7 +49,7 @@ public class Server
}
catch(Ice.LocalException ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
}
diff --git a/csharp/test/Ice/slicing/objects/ServerAMD.cs b/csharp/test/Ice/slicing/objects/ServerAMD.cs
index fdc684e7014..54109e72e98 100644
--- a/csharp/test/Ice/slicing/objects/ServerAMD.cs
+++ b/csharp/test/Ice/slicing/objects/ServerAMD.cs
@@ -7,7 +7,7 @@
//
// **********************************************************************
-using System.Diagnostics;
+using System;
public class Server
{
@@ -32,20 +32,12 @@ public class Server
try
{
Ice.InitializationData data = new Ice.InitializationData();
-#if COMPACT
- //
- // When using Ice for .NET Compact Framework, we need to specify
- // the assembly so that Ice can locate classes and exceptions.
- //
- data.properties = Ice.Util.createProperties();
- data.properties.setProperty("Ice.FactoryAssemblies", "serveramd");
-#endif
communicator = Ice.Util.initialize(ref args, data);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
@@ -57,7 +49,7 @@ public class Server
}
catch(Ice.LocalException ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
}
diff --git a/csharp/test/Ice/slicing/objects/Test.ice b/csharp/test/Ice/slicing/objects/Test.ice
index 12a0dd34273..08c203f4698 100644
--- a/csharp/test/Ice/slicing/objects/Test.ice
+++ b/csharp/test/Ice/slicing/objects/Test.ice
@@ -34,7 +34,7 @@ class D1 extends B
B pd1;
};
-["clr:collection"] sequence<B> BSeq;
+sequence<B> BSeq;
class SS1
{
diff --git a/csharp/test/Ice/slicing/objects/TestAMD.ice b/csharp/test/Ice/slicing/objects/TestAMD.ice
index 3d83bdb6f73..64ebd62fd61 100644
--- a/csharp/test/Ice/slicing/objects/TestAMD.ice
+++ b/csharp/test/Ice/slicing/objects/TestAMD.ice
@@ -34,7 +34,7 @@ class D1 extends B
B pd1;
};
-["clr:collection"] sequence<B> BSeq;
+sequence<B> BSeq;
class SS1
{
diff --git a/csharp/test/Ice/stream/AllTests.cs b/csharp/test/Ice/stream/AllTests.cs
index 372f8e9bba5..f4f965d6bc5 100644
--- a/csharp/test/Ice/stream/AllTests.cs
+++ b/csharp/test/Ice/stream/AllTests.cs
@@ -7,16 +7,11 @@
//
// **********************************************************************
-using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using Test;
-#if SILVERLIGHT
-using System.Windows.Controls;
-#endif
-
public class AllTests : TestCommon.TestApp
{
//
@@ -145,20 +140,7 @@ public class AllTests : TestCommon.TestApp
private Ice.ValueFactory _factory;
}
-#if SILVERLIGHT
- public override Ice.InitializationData initData()
- {
- Ice.InitializationData initData = new Ice.InitializationData();
- initData.properties = Ice.Util.createProperties();
- initData.properties.setProperty("Ice.FactoryAssemblies", "stream,version=1.0.0.0");
- return initData;
- }
-
- override
- public void run(Ice.Communicator communicator)
-#else
static public int run(Ice.Communicator communicator)
-#endif
{
MyClassFactoryWrapper factoryWrapper = new MyClassFactoryWrapper();
@@ -415,7 +397,6 @@ public class AllTests : TestCommon.TestApp
test(Compare(arr2S, arrS));
}
-#if !COMPACT && !SILVERLIGHT
{
Serialize.Small small = new Serialize.Small();
small.i = 99;
@@ -426,7 +407,6 @@ public class AllTests : TestCommon.TestApp
Serialize.Small small2 = (Serialize.Small)@in.readSerializable();
test(small2.i == 99);
}
-#endif
{
short[] arr =
@@ -1161,119 +1141,6 @@ public class AllTests : TestCommon.TestApp
}
{
- bool[] arr =
- {
- true,
- false,
- true,
- false
- };
- @out = new Ice.OutputStream(communicator);
- Test.BoolCollection l = new Test.BoolCollection(arr);
- Test.BoolCollectionHelper.write(@out, l);
- byte[] data = @out.finished();
- @in = new Ice.InputStream(communicator, data);
- Test.BoolCollection l2 = Test.BoolCollectionHelper.read(@in);
- test(Compare(l, l2));
- }
-
- {
- int[] arr =
- {
- 0x01,
- 0x11,
- 0x12,
- 0x22
- };
- @out = new Ice.OutputStream(communicator);
- Test.IntCollection l = new Test.IntCollection(arr);
- Test.IntCollectionHelper.write(@out, l);
- byte[] data = @out.finished();
- @in = new Ice.InputStream(communicator, data);
- Test.IntCollection l2 = Test.IntCollectionHelper.read(@in);
- test(Compare(l2, l));
- }
-
- {
- string[] arr =
- {
- "string1",
- "string2",
- "string3",
- "string4"
- };
- @out = new Ice.OutputStream(communicator);
- Test.StringCollection l = new Test.StringCollection(arr);
- Test.StringCollectionHelper.write(@out, l);
- byte[] data = @out.finished();
- @in = new Ice.InputStream(communicator, data);
- Test.StringCollection l2 = Test.StringCollectionHelper.read(@in);
- test(Compare(l2, l));
- }
-
- {
- Test.MyEnum[] arr =
- {
- Test.MyEnum.enum3,
- Test.MyEnum.enum2,
- Test.MyEnum.enum1,
- Test.MyEnum.enum2
- };
- @out = new Ice.OutputStream(communicator);
- Test.MyEnumCollection l = new Test.MyEnumCollection(arr);
- Test.MyEnumCollectionHelper.write(@out, l);
- byte[] data = @out.finished();
- @in = new Ice.InputStream(communicator, data);
- Test.MyEnumCollection l2 = Test.MyEnumCollectionHelper.read(@in);
- test(Compare(l2, l));
- }
-
- {
- @out = new Ice.OutputStream(communicator);
- Test.SmallStructCollection l = new Test.SmallStructCollection(smallStructArray);
- Test.SmallStructCollectionHelper.write(@out, l);
- byte[] data = @out.finished();
- @in = new Ice.InputStream(communicator, data);
- Test.SmallStructCollection l2 = Test.SmallStructCollectionHelper.read(@in);
- test(l2.Count == l.Count);
- IEnumerator<Test.SmallStruct> e = l.GetEnumerator();
- IEnumerator<Test.SmallStruct> e2 = l2.GetEnumerator();
- while (e.MoveNext() && e2.MoveNext())
- {
- test(e.Current.Equals(e2.Current));
- }
- }
-
- {
- @out = new Ice.OutputStream(communicator);
- Test.MyClassCollection l = new Test.MyClassCollection(myClassArray);
- Test.MyClassCollectionHelper.write(@out, l);
- @out.writePendingObjects();
- byte[] data = @out.finished();
- @in = new Ice.InputStream(communicator, data);
- Test.MyClassCollection l2 = Test.MyClassCollectionHelper.read(@in);
- @in.readPendingObjects();
- test(l2.Count == l.Count);
- for (int i = 0; i < l2.Count; ++i)
- {
- test(l2[i] != null);
- test(l2[i].c == l2[i]);
- test(l2[i].o == l2[i]);
- test(l2[i].s.e == Test.MyEnum.enum2);
- test(Compare(l2[i].seq1, l[i].seq1));
- test(Compare(l2[i].seq2, l[i].seq2));
- test(Compare(l2[i].seq3, l[i].seq3));
- test(Compare(l2[i].seq4, l[i].seq4));
- test(Compare(l2[i].seq5, l[i].seq5));
- test(Compare(l2[i].seq6, l[i].seq6));
- test(Compare(l2[i].seq7, l[i].seq7));
- test(Compare(l2[i].seq8, l[i].seq8));
- test(Compare(l2[i].seq9, l[i].seq9));
- test(l2[i].d["hi"].Equals(l2[i]));
- }
- }
-
- {
string[] arr =
{
"string1",
@@ -1318,13 +1185,9 @@ public class AllTests : TestCommon.TestApp
Stack<string[]> l2 = Test.StringSStackHelper.read(@in);
test(Compare(l2, l));
}
-#if !SILVERLIGHT
+
{
-#if COMPACT
- SortedList<string, string> dict = new SortedList<string, string>();
-#else
SortedDictionary<string, string> dict = new SortedDictionary<string, string>();
-#endif
dict.Add("key1", "value1");
dict.Add("key2", "value2");
@out = new Ice.OutputStream(communicator);
@@ -1335,21 +1198,7 @@ public class AllTests : TestCommon.TestApp
test(Ice.CollectionComparer.Equals(dict2, dict));
}
- {
- Test.StringIntDCollection dict = new Test.StringIntDCollection();
- dict.Add("key1", 1);
- dict.Add("key2", 2);
- @out = new Ice.OutputStream(communicator);
- Test.StringIntDCollectionHelper.write(@out, dict);
- byte[] data = @out.finished();
- @in = new Ice.InputStream(communicator, data);
- Test.StringIntDCollection dict2 = Test.StringIntDCollectionHelper.read(@in);
- test(Ice.CollectionComparer.Equals(dict2, dict));
- }
-#endif
WriteLine("ok");
-#if !SILVERLIGHT
return 0;
-#endif
}
}
diff --git a/csharp/test/Ice/stream/Client.cs b/csharp/test/Ice/stream/Client.cs
index 91c6ad3d0eb..0fb56692d3e 100644
--- a/csharp/test/Ice/stream/Client.cs
+++ b/csharp/test/Ice/stream/Client.cs
@@ -8,10 +8,7 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
-using System.Collections;
-using System.Collections.Generic;
[assembly: CLSCompliant(true)]
@@ -29,18 +26,10 @@ public class Client
try
{
Ice.InitializationData data = new Ice.InitializationData();
-#if COMPACT
- //
- // When using Ice for .NET Compact Framework, we need to specify
- // the assembly so that Ice can locate classes and exceptions.
- //
- data.properties = Ice.Util.createProperties();
- data.properties.setProperty("Ice.FactoryAssemblies", "client");
-#endif
communicator = Ice.Util.initialize(ref args, data);
status = AllTests.run(communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
Console.Error.WriteLine(ex);
status = 1;
diff --git a/csharp/test/Ice/stream/Test.ice b/csharp/test/Ice/stream/Test.ice
index 40c079e6dca..2df649693da 100644
--- a/csharp/test/Ice/stream/Test.ice
+++ b/csharp/test/Ice/stream/Test.ice
@@ -103,40 +103,17 @@ sequence<string> StringQueue;
["clr:generic:Queue"]
sequence<SmallStruct> SmallStructQueue;
-["clr:collection"]
-sequence<bool> BoolCollection;
-["clr:collection"]
-sequence<int> IntCollection;
-["clr:collection"]
-sequence<string> StringCollection;
-["clr:collection"]
-sequence<MyEnum> MyEnumCollection;
-["clr:collection"]
-sequence<SmallStruct> SmallStructCollection;
-["clr:collection"]
-sequence<MyClass> MyClassCollection;
["clr:generic:List"]
sequence<Ice::StringSeq> StringSList;
["clr:generic:Stack"]
sequence<Ice::StringSeq> StringSStack;
-#ifndef SILVERLIGHT
-# if COMPACT
-["clr:generic:SortedList"]
-dictionary<string, string> SortedStringStringD;
-# else
+
["clr:generic:SortedDictionary"]
dictionary<string, string> SortedStringStringD;
-# endif
-#endif
-
-["clr:collection"]
-dictionary<string, int> StringIntDCollection;
-#ifndef SILVERLIGHT
["clr:serializable:Serialize.Small"] sequence<byte> SerialSmall;
-#endif
class MyClass
{
@@ -154,9 +131,7 @@ class MyClass
MyEnumS seq9;
MyClassS seq10;
StringMyClassD d;
-#if !defined(COMPACT) && !defined(SILVERLIGHT)
SerialSmall ss;
-#endif
};
interface MyInterface
diff --git a/csharp/test/Ice/threadPoolPriority/Client.cs b/csharp/test/Ice/threadPoolPriority/Client.cs
index 54f503c3dbd..eb4f911ac78 100644
--- a/csharp/test/Ice/threadPoolPriority/Client.cs
+++ b/csharp/test/Ice/threadPoolPriority/Client.cs
@@ -8,9 +8,7 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
-using System.Collections;
[assembly: CLSCompliant(true)]
@@ -60,7 +58,7 @@ public class Client
communicator = Ice.Util.initialize(ref args);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
Console.Error.WriteLine(ex);
status = 1;
diff --git a/csharp/test/Ice/threadPoolPriority/Server.cs b/csharp/test/Ice/threadPoolPriority/Server.cs
index 1a8c1c2a613..01b0638f3c7 100644
--- a/csharp/test/Ice/threadPoolPriority/Server.cs
+++ b/csharp/test/Ice/threadPoolPriority/Server.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -43,7 +42,7 @@ public class Server
communicator = Ice.Util.initialize(ref args, initData);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
Console.Error.WriteLine(ex);
status = 1;
diff --git a/csharp/test/Ice/timeout/AllTests.cs b/csharp/test/Ice/timeout/AllTests.cs
index 835f5768ec2..ae6b67da28a 100644
--- a/csharp/test/Ice/timeout/AllTests.cs
+++ b/csharp/test/Ice/timeout/AllTests.cs
@@ -7,14 +7,9 @@
//
// **********************************************************************
-using System;
using System.Diagnostics;
using System.Threading;
-#if SILVERLIGHT
-using System.Windows.Controls;
-#endif
-
public class AllTests : TestCommon.TestApp
{
private class Callback
@@ -30,7 +25,7 @@ public class AllTests : TestCommon.TestApp
{
while(!_called)
{
- System.Threading.Monitor.Wait(this);
+ Monitor.Wait(this);
}
_called = false;
@@ -43,42 +38,14 @@ public class AllTests : TestCommon.TestApp
{
Debug.Assert(!_called);
_called = true;
- System.Threading.Monitor.Pulse(this);
+ Monitor.Pulse(this);
}
}
private bool _called;
}
-#if SILVERLIGHT
- public override Ice.InitializationData initData()
- {
- Ice.InitializationData initData = new Ice.InitializationData();
- initData.properties = Ice.Util.createProperties();
-
- //
- // We need to send messages large enough to cause the transport
- // buffers to fill up.
- //
- initData.properties.setProperty("Ice.MessageSizeMax", "20000");
-
- //
- // For this test, we want to disable retries.
- //
- initData.properties.setProperty("Ice.RetryIntervals", "-1");
-
- //
- // This test kills connections, so we don't want warnings.
- //
- initData.properties.setProperty("Ice.Warn.Connections", "0");
- return initData;
- }
-
- override
- public void run(Ice.Communicator communicator)
-#else
public static Test.TimeoutPrx allTests(Ice.Communicator communicator)
-#endif
{
string sref = "timeout:default -p 12010";
Ice.ObjectPrx obj = communicator.stringToProxy(sref);
@@ -473,11 +440,6 @@ public class AllTests : TestCommon.TestApp
adapter.destroy();
}
WriteLine("ok");
-
-#if SILVERLIGHT
- timeout.shutdown();
-#else
return timeout;
-#endif
}
}
diff --git a/csharp/test/Ice/timeout/Client.cs b/csharp/test/Ice/timeout/Client.cs
index 4a73cc048d1..4a2d31b5607 100644
--- a/csharp/test/Ice/timeout/Client.cs
+++ b/csharp/test/Ice/timeout/Client.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -61,7 +60,7 @@ public class Client
communicator = Ice.Util.initialize(ref args, initData);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
Console.Error.WriteLine(ex);
status = 1;
diff --git a/csharp/test/Ice/timeout/Server.cs b/csharp/test/Ice/timeout/Server.cs
index 55f33f19791..31e15a6e868 100644
--- a/csharp/test/Ice/timeout/Server.cs
+++ b/csharp/test/Ice/timeout/Server.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -54,7 +53,7 @@ public class Server
communicator = Ice.Util.initialize(ref args, initData);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
Console.Error.WriteLine(ex);
status = 1;
diff --git a/csharp/test/Ice/timeout/TimeoutI.cs b/csharp/test/Ice/timeout/TimeoutI.cs
index de554d92ea5..8ebb25385cb 100644
--- a/csharp/test/Ice/timeout/TimeoutI.cs
+++ b/csharp/test/Ice/timeout/TimeoutI.cs
@@ -7,7 +7,6 @@
//
// **********************************************************************
-using System;
using System.Threading;
internal class ActivateAdapterThread
diff --git a/csharp/test/Ice/udp/Client.cs b/csharp/test/Ice/udp/Client.cs
index 09466cb310d..00f7b56c55e 100644
--- a/csharp/test/Ice/udp/Client.cs
+++ b/csharp/test/Ice/udp/Client.cs
@@ -9,7 +9,6 @@
using Test;
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -27,9 +26,9 @@ public class Client
int num;
try
{
- num = args.Length == 1 ? System.Int32.Parse(args[0]) : 0;
+ num = args.Length == 1 ? Int32.Parse(args[0]) : 0;
}
- catch(System.FormatException)
+ catch(FormatException)
{
num = 0;
}
@@ -56,9 +55,9 @@ public class Client
communicator = Ice.Util.initialize(ref args, initData);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
@@ -70,7 +69,7 @@ public class Client
}
catch(Ice.LocalException ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
}
diff --git a/csharp/test/Ice/udp/Server.cs b/csharp/test/Ice/udp/Server.cs
index f7bbe9c7ae2..49886019a36 100644
--- a/csharp/test/Ice/udp/Server.cs
+++ b/csharp/test/Ice/udp/Server.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -26,9 +25,9 @@ public class Server
int port = 12010;
try
{
- port += args.Length == 1 ? System.Int32.Parse(args[0]) : 0;
+ port += args.Length == 1 ? Int32.Parse(args[0]) : 0;
}
- catch(System.FormatException)
+ catch(FormatException)
{
}
properties.setProperty("ControlAdapter.Endpoints", "tcp -p " + port);
@@ -85,9 +84,9 @@ public class Server
communicator = Ice.Util.initialize(ref args, initData);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
@@ -99,7 +98,7 @@ public class Server
}
catch(Ice.LocalException ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
}
diff --git a/csharp/test/IceBox/admin/AllTests.cs b/csharp/test/IceBox/admin/AllTests.cs
index c32f5e596cd..fc0938892ae 100644
--- a/csharp/test/IceBox/admin/AllTests.cs
+++ b/csharp/test/IceBox/admin/AllTests.cs
@@ -9,7 +9,6 @@
using System;
using System.Collections.Generic;
-using System.Diagnostics;
using Test;
diff --git a/csharp/test/IceBox/admin/Client.cs b/csharp/test/IceBox/admin/Client.cs
index 8687ffd392a..1d0a221becb 100644
--- a/csharp/test/IceBox/admin/Client.cs
+++ b/csharp/test/IceBox/admin/Client.cs
@@ -35,10 +35,7 @@ public class Client
{
int status = 0;
Ice.Communicator communicator = null;
-
-#if !COMPACT && !UNITY
Debug.Listeners.Add(new ConsoleTraceListener());
-#endif
try
{
@@ -48,7 +45,7 @@ public class Client
communicator = Ice.Util.initialize(ref args, initData);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
Console.Error.WriteLine(ex);
status = 1;
diff --git a/csharp/test/IceBox/configuration/Client.cs b/csharp/test/IceBox/configuration/Client.cs
index db723be1b3d..f66be79fed2 100644
--- a/csharp/test/IceBox/configuration/Client.cs
+++ b/csharp/test/IceBox/configuration/Client.cs
@@ -7,9 +7,7 @@
//
// **********************************************************************
-using Test;
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -45,9 +43,9 @@ public class Client
communicator = Ice.Util.initialize(ref args, initData);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
@@ -59,7 +57,7 @@ public class Client
}
catch (Ice.LocalException ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
}
diff --git a/csharp/test/IceDiscovery/simple/AllTests.cs b/csharp/test/IceDiscovery/simple/AllTests.cs
index c451cd170b0..64e6836e09e 100644
--- a/csharp/test/IceDiscovery/simple/AllTests.cs
+++ b/csharp/test/IceDiscovery/simple/AllTests.cs
@@ -10,7 +10,6 @@
using Test;
using System;
using System.Collections.Generic;
-using System.Threading;
public class AllTests
{
diff --git a/csharp/test/IceDiscovery/simple/Client.cs b/csharp/test/IceDiscovery/simple/Client.cs
index ac280869984..36e5224e7fc 100644
--- a/csharp/test/IceDiscovery/simple/Client.cs
+++ b/csharp/test/IceDiscovery/simple/Client.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -24,9 +23,9 @@ public class Client
int num;
try
{
- num = args.Length == 1 ? System.Int32.Parse(args[0]) : 0;
+ num = args.Length == 1 ? Int32.Parse(args[0]) : 0;
}
- catch(System.FormatException)
+ catch(FormatException)
{
num = 0;
}
@@ -44,9 +43,9 @@ public class Client
communicator = Ice.Util.initialize(ref args);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
@@ -58,7 +57,7 @@ public class Client
}
catch(Ice.LocalException ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
}
diff --git a/csharp/test/IceDiscovery/simple/Server.cs b/csharp/test/IceDiscovery/simple/Server.cs
index 1a757522949..998df8ca95d 100644
--- a/csharp/test/IceDiscovery/simple/Server.cs
+++ b/csharp/test/IceDiscovery/simple/Server.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -26,9 +25,9 @@ public class Server
int num = 0;
try
{
- num = System.Int32.Parse(args[0]);
+ num = Int32.Parse(args[0]);
}
- catch(System.FormatException)
+ catch(FormatException)
{
}
@@ -54,9 +53,9 @@ public class Server
communicator = Ice.Util.initialize(ref args);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
@@ -68,7 +67,7 @@ public class Server
}
catch(Ice.LocalException ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
}
diff --git a/csharp/test/IceGrid/simple/AllTests.cs b/csharp/test/IceGrid/simple/AllTests.cs
index c82fa9805f7..f1c781d6b7d 100644
--- a/csharp/test/IceGrid/simple/AllTests.cs
+++ b/csharp/test/IceGrid/simple/AllTests.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Threading;
using Test;
public class AllTests
@@ -147,10 +146,10 @@ public class AllTests
}
Console.Out.WriteLine("ok");
- System.Console.Out.Write("shutting down server... ");
- System.Console.Out.Flush();
+ Console.Out.Write("shutting down server... ");
+ Console.Out.Flush();
obj.shutdown();
- System.Console.Out.WriteLine("ok");
+ Console.Out.WriteLine("ok");
}
public static void
diff --git a/csharp/test/IceGrid/simple/Client.cs b/csharp/test/IceGrid/simple/Client.cs
index b2607ab696e..21eca6fe720 100644
--- a/csharp/test/IceGrid/simple/Client.cs
+++ b/csharp/test/IceGrid/simple/Client.cs
@@ -7,9 +7,7 @@
//
// **********************************************************************
-using Test;
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -54,9 +52,9 @@ public class Client
communicator = Ice.Util.initialize(ref args);
status = run(args, communicator);
}
- catch (System.Exception ex)
+ catch (Exception ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
@@ -68,7 +66,7 @@ public class Client
}
catch (Ice.LocalException ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
}
diff --git a/csharp/test/IceGrid/simple/Server.cs b/csharp/test/IceGrid/simple/Server.cs
index 0b67157dd8d..34713234936 100644
--- a/csharp/test/IceGrid/simple/Server.cs
+++ b/csharp/test/IceGrid/simple/Server.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
diff --git a/csharp/test/IceGrid/simple/TestI.cs b/csharp/test/IceGrid/simple/TestI.cs
index 7715743a010..f05fd64f776 100644
--- a/csharp/test/IceGrid/simple/TestI.cs
+++ b/csharp/test/IceGrid/simple/TestI.cs
@@ -9,11 +9,6 @@
public sealed class TestI : Test.TestIntfDisp_
{
- public
- TestI()
- {
- }
-
public override void
shutdown(Ice.Current current)
{
diff --git a/csharp/test/IceSSL/configuration/Client.cs b/csharp/test/IceSSL/configuration/Client.cs
index 0003af8adf8..6154fd3dc5d 100644
--- a/csharp/test/IceSSL/configuration/Client.cs
+++ b/csharp/test/IceSSL/configuration/Client.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -44,7 +43,7 @@ public class Client
communicator = Ice.Util.initialize(ref args);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
Console.Error.WriteLine(ex);
status = 1;
diff --git a/csharp/test/IceSSL/configuration/Server.cs b/csharp/test/IceSSL/configuration/Server.cs
index 860ef58b15d..d0aed55ac65 100644
--- a/csharp/test/IceSSL/configuration/Server.cs
+++ b/csharp/test/IceSSL/configuration/Server.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -41,7 +40,7 @@ public class Server
communicator = Ice.Util.initialize(ref args);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
Console.Error.WriteLine(ex);
status = 1;
diff --git a/csharp/test/IceUtil/inputUtil/Client.cs b/csharp/test/IceUtil/inputUtil/Client.cs
index 439c1810cd5..eda4b88b917 100644
--- a/csharp/test/IceUtil/inputUtil/Client.cs
+++ b/csharp/test/IceUtil/inputUtil/Client.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
public class Client
{
@@ -22,8 +21,8 @@ public class Client
public static void Main(string[] argvs)
{
- System.Console.Out.Write("testing string to command line arguments... ");
- System.Console.Out.Flush();
+ Console.Out.Write("testing string to command line arguments... ");
+ Console.Out.Flush();
string[] args;
try
@@ -104,10 +103,10 @@ public class Client
}
}
- System.Console.Out.WriteLine("ok");
+ Console.Out.WriteLine("ok");
- System.Console.Out.Write("checking string splitting... ");
- System.Console.Out.Flush();
+ Console.Out.Write("checking string splitting... ");
+ Console.Out.Flush();
{
string[] arr;
@@ -163,6 +162,6 @@ public class Client
test(IceUtilInternal.StringUtil.splitString("a\"b", ":") == null);
}
- System.Console.Out.WriteLine("ok");
+ Console.Out.WriteLine("ok");
}
}
diff --git a/csharp/test/Slice/keyword/Client.cs b/csharp/test/Slice/keyword/Client.cs
index 818d7106084..168f0e9063e 100644
--- a/csharp/test/Slice/keyword/Client.cs
+++ b/csharp/test/Slice/keyword/Client.cs
@@ -126,10 +126,6 @@ public class Client
f1.@default();
}
test(f1 == null);
- @abstract.@extern l = new @abstract.@extern();
- test(l != null);
- @abstract.@finally g = new @abstract.@finally();
- test(g != null);
Dictionary<string, @abstract.@break> g2 = new Dictionary<string, @abstract.@break>();
test(g2 != null);
@abstract.@fixed h = new @abstract.@fixed();
diff --git a/csharp/test/Slice/keyword/Key.ice b/csharp/test/Slice/keyword/Key.ice
index c14cb9b47bc..fb93dc2b69d 100644
--- a/csharp/test/Slice/keyword/Key.ice
+++ b/csharp/test/Slice/keyword/Key.ice
@@ -39,18 +39,15 @@ class delegate
class explicit extends delegate implements decimal, case
{
};
-["clr:collection"] sequence<as> extern;
+
dictionary<string, break> while;
-["clr:collection"] dictionary<string, as> finally;
class optionalMembers
{
optional(1) break for;
optional(2) as goto;
optional(3) explicit if;
- optional(4) extern catch;
optional(5) while internal;
- optional(6) finally is;
optional(7) string namespace;
optional(8) explicit* null;
};
@@ -59,35 +56,27 @@ interface optionalParams
{
optional(1) break for(optional(2) as goto,
optional(3) explicit if,
- optional(4) extern catch,
optional(5) while internal,
- optional(6) finally is,
optional(7) string namespace,
optional(8) explicit* null);
["amd"]
optional(1) break continue(optional(2) as goto,
optional(3) explicit if,
- optional(4) extern catch,
optional(5) while internal,
- optional(6) finally is,
optional(7) string namespace,
optional(8) explicit* null);
optional(1) break in(out optional(2) as goto,
out optional(3) explicit if,
- out optional(4) extern catch,
out optional(5) while internal,
- out optional(6) finally is,
out optional(7) string namespace,
out optional(8) explicit* null);
["amd"]
optional(1) break foreach(out optional(2) as goto,
out optional(3) explicit if,
- out optional(4) extern catch,
out optional(5) while internal,
- out optional(6) finally is,
out optional(7) string namespace,
out optional(8) explicit* null);
};
diff --git a/csharp/test/Slice/structure/Client.cs b/csharp/test/Slice/structure/Client.cs
index 79aefd596d3..ca183624e32 100644
--- a/csharp/test/Slice/structure/Client.cs
+++ b/csharp/test/Slice/structure/Client.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Collections.Generic;
using Test;
@@ -18,7 +17,7 @@ public class Client
{
if(!b)
{
- throw new System.Exception();
+ throw new Exception();
}
}
@@ -33,10 +32,10 @@ public class Client
C def_cls = new C(5);
S1 def_s = new S1("name");
string[] def_ss = new string[]{ "one", "two", "three" };
- IntList def_il = new IntList();
- def_il.Add(1);
- def_il.Add(2);
- def_il.Add(3);
+ int[] def_il = new int[3];
+ def_il[0] = 1;
+ def_il[1] = 2;
+ def_il[2] = 3;
Dictionary<string, string> def_sd = new Dictionary<string, string>();
def_sd.Add("abc", "def");
Ice.ObjectPrx def_prx = communicator.stringToProxy("test");
@@ -147,11 +146,11 @@ public class Client
S2 v1, v2;
v1 = (S2)def_s2.Clone();
- v1.il = (IntList)def_s2.il.Clone();
+ v1.il = (int[])def_s2.il.Clone();
test(v1.Equals(def_s2));
v1 = (S2)def_s2.Clone();
- v1.il = new IntList();
+ v1.il = new int[3] { 0, 0, 0};
test(!v1.Equals(def_s2));
v1 = (S2)def_s2.Clone();
diff --git a/csharp/test/Slice/structure/Test.ice b/csharp/test/Slice/structure/Test.ice
index 0d26449d2a0..e4ea700992b 100644
--- a/csharp/test/Slice/structure/Test.ice
+++ b/csharp/test/Slice/structure/Test.ice
@@ -11,7 +11,7 @@ module Test
{
sequence<string> StringSeq;
-["clr:collection"] sequence<int> IntList;
+sequence<int> IntList;
dictionary<string, string> StringDict;
class C
diff --git a/csharp/test/TestCommon/TestApp.cs b/csharp/test/TestCommon/TestApp.cs
index 277c1c42761..cf4b394db6e 100644
--- a/csharp/test/TestCommon/TestApp.cs
+++ b/csharp/test/TestCommon/TestApp.cs
@@ -8,19 +8,7 @@
// **********************************************************************
using System;
-
-#if SILVERLIGHT
-using System.Collections.Generic;
-using System.Net;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Documents;
-using System.Windows.Ink;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Animation;
-using System.Windows.Shapes;
-#endif
+using System.Diagnostics;
namespace TestCommon
{
@@ -30,123 +18,25 @@ namespace TestCommon
{
if(!b)
{
- System.Diagnostics.Debug.Assert(false);
- throw new System.Exception();
+ Debug.Assert(false);
+ throw new Exception();
}
}
-#if !SILVERLIGHT
- static
-#endif
- public void Write(string msg)
+
+ public static void Write(string msg)
{
-#if SILVERLIGHT
- Console.Out.Write(msg);
-#else
Console.Out.Write(msg);
-#endif
}
-#if !SILVERLIGHT
- static
-#endif
- public void WriteLine(string msg)
+ public static void WriteLine(string msg)
{
-#if SILVERLIGHT
Console.Out.WriteLine(msg);
-#else
- Console.Out.WriteLine(msg);
-#endif
}
-#if !SILVERLIGHT
- static
-#endif
- public void Flush()
+ public static void Flush()
{
Console.Out.Flush();
}
-
-#if SILVERLIGHT
-
- public abstract void run(Ice.Communicator communicator);
-
- public virtual Ice.InitializationData
- initData()
- {
- return new Ice.InitializationData();
- }
-
- public void main()
- {
- int args = Application.Current.Host.Source.OriginalString.IndexOf("?");
- Dictionary<string, string> properties = new Dictionary<string, string>();
- if(args > 0 && args + 1 < Application.Current.Host.Source.OriginalString.Length)
- {
- string[] props = Application.Current.Host.Source.OriginalString.Substring(args + 1).Split(';');
- foreach (string prop in props)
- {
- int pos = prop.IndexOf('=');
- if(pos > 0)
- {
- properties[prop.Substring(0, pos)] = prop.Substring(pos + 1);
- }
- }
- }
-
- System.Threading.Thread t = new System.Threading.Thread(() =>
- {
- Ice.Communicator communicator = null;
- try
- {
- Ice.InitializationData initializationData = initData();
- if(initializationData.properties == null)
- {
- initializationData.properties = Ice.Util.createProperties();
- }
-
- foreach(KeyValuePair<String,String> entry in properties)
- {
- if(initializationData.properties.getProperty(entry.Key).Equals(""))
- {
- initializationData.properties.setProperty(entry.Key, entry.Value);
- }
- }
-
- communicator = Ice.Util.initialize(initializationData);
- run(communicator);
- completed();
- }
- catch(System.Exception ex)
- {
- failed(ex);
- }
- finally
- {
- if(communicator != null)
- {
- communicator.destroy();
- }
- }
- });
- t.Start();
- }
-
- public void completed()
- {
- Deployment.Current.Dispatcher.BeginInvoke(delegate()
- {
- Application.Current.MainWindow.Close();
- });
- }
-
- public void failed(System.Exception ex)
- {
- System.Environment.ExitCode = 1;
- WriteLine(Environment.NewLine + "Test Failed:");
- WriteLine("Exception: " + ex.ToString());
- completed();
- }
-#endif
}
}