diff options
Diffstat (limited to 'csharp/test/Slice/structure')
-rw-r--r-- | csharp/test/Slice/structure/Client.cs | 15 | ||||
-rw-r--r-- | csharp/test/Slice/structure/Test.ice | 2 |
2 files changed, 8 insertions, 9 deletions
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 |