public static bool Test1() { System.Random ran = new System.Random(2134); //%%if IsEx==0 ( BList <int> list1 = new BList <int>(); Gen::List <int> list2 = new System.Collections.Generic.List <int>(); //%%elif IsEx==1 BListEx <TestElement> list1 = new BListEx <TestElement>(); Gen::List <TestElement> list2 = new System.Collections.Generic.List <TestElement>(); //%%) const int N = 10000; for (int i = 0; i < N; i++) { //%%if IsEx==0 ( int n = (int)(ran.NextDouble() * 10000); //%%elif IsEx==1 TestElement n = new TestElement((int)(ran.NextDouble() * 10000)); //%%) list1.Add(n); list2.Add(n); } for (int i = 0; i < N; i++) { if (list1[i] != list2[i]) { return(false); } } return(true); }