Fix LinearGradientMode parameter validation to match corefx (#5672)
[mono.git] / mono / tests / arraylist-clone.cs
1
2
3 using System.IO;
4 using System;
5 using System.Collections;
6
7 namespace T {
8         public class T {
9                 string name="unset";
10
11                 T(string n) {
12                         name=n;
13                 }
14
15                 public static int Main () {
16                         ArrayList tlist=new ArrayList(), newlist;
17                         T[] tarray = new T [2];
18                         T t1=new T("t1");
19                         T t2=new T("t2");
20                         tlist.Add(t1);
21                         tlist.Add(t2);
22
23                         newlist=(ArrayList)tlist.Clone();
24                         newlist.CopyTo (tarray);
25
26                         if (tarray [0].name != "t1")
27                                 return 1;
28                         if (tarray [1].name != "t2")
29                                 return 2;
30                         
31                         return 0;
32                 }
33         }
34 }