diff options
Diffstat (limited to 'csharp/test/Slice/structure/Client.cs')
-rw-r--r-- | csharp/test/Slice/structure/Client.cs | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/csharp/test/Slice/structure/Client.cs b/csharp/test/Slice/structure/Client.cs index 7b85d273602..61409ac9de6 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(); @@ -295,15 +294,7 @@ public class Client if(communicator != null) { - try - { - communicator.destroy(); - } - catch(Ice.LocalException ex) - { - Console.Error.WriteLine(ex); - status = 1; - } + communicator.destroy(); } return status; |