2 using enum_thoroughNamespace;
8 int i = enum_thorough.AnonEnum1;
9 if (enum_thorough.ReallyAnInteger != 200) throw new Exception("Test Anon 1 failed");
10 i += enum_thorough.AnonSpaceEnum1;
11 i += AnonStruct.AnonStructEnum1;
14 colour red = colour.red;
15 enum_thorough.colourTest1(red);
16 enum_thorough.colourTest2(red);
17 enum_thorough.colourTest3(red);
18 enum_thorough.colourTest4(red);
19 enum_thorough.myColour = red;
22 SpeedClass s = new SpeedClass();
23 SpeedClass.speed speed = SpeedClass.speed.slow;
24 if (s.speedTest1(speed) != speed) throw new Exception("speedTest 1 failed");
25 if (s.speedTest2(speed) != speed) throw new Exception("speedTest 2 failed");
26 if (s.speedTest3(speed) != speed) throw new Exception("speedTest 3 failed");
27 if (s.speedTest4(speed) != speed) throw new Exception("speedTest 4 failed");
28 if (s.speedTest5(speed) != speed) throw new Exception("speedTest 5 failed");
29 if (s.speedTest6(speed) != speed) throw new Exception("speedTest 6 failed");
30 if (s.speedTest7(speed) != speed) throw new Exception("speedTest 7 failed");
31 if (s.speedTest8(speed) != speed) throw new Exception("speedTest 8 failed");
33 if (enum_thorough.speedTest1(speed) != speed) throw new Exception("speedTest Global 1 failed");
34 if (enum_thorough.speedTest2(speed) != speed) throw new Exception("speedTest Global 2 failed");
35 if (enum_thorough.speedTest3(speed) != speed) throw new Exception("speedTest Global 3 failed");
36 if (enum_thorough.speedTest4(speed) != speed) throw new Exception("speedTest Global 4 failed");
37 if (enum_thorough.speedTest5(speed) != speed) throw new Exception("speedTest Global 5 failed");
40 SpeedClass s = new SpeedClass();
41 SpeedClass.speed slow = SpeedClass.speed.slow;
42 SpeedClass.speed lightning = SpeedClass.speed.lightning;
44 if (s.mySpeedtd1 != slow) throw new Exception("mySpeedtd1 1 failed");
45 if ((int)s.mySpeedtd1 != 10) throw new Exception("mySpeedtd1 2 failed");
47 s.mySpeedtd1 = lightning;
48 if (s.mySpeedtd1 != lightning) throw new Exception("mySpeedtd1 3 failed");
49 if ((int)s.mySpeedtd1 != 31) throw new Exception("mySpeedtd1 4 failed");
52 if (enum_thorough.namedanonTest1(namedanon.NamedAnon2) != namedanon.NamedAnon2) throw new Exception("namedanonTest 1 failed");
55 twonames val = twonames.TwoNames2;
56 if (enum_thorough.twonamesTest1(val) != val) throw new Exception("twonamesTest 1 failed");
57 if (enum_thorough.twonamesTest2(val) != val) throw new Exception("twonamesTest 2 failed");
58 if (enum_thorough.twonamesTest3(val) != val) throw new Exception("twonamesTest 3 failed");
61 TwoNamesStruct t = new TwoNamesStruct();
62 TwoNamesStruct.twonames val = TwoNamesStruct.twonames.TwoNamesStruct1;
63 if (t.twonamesTest1(val) != val) throw new Exception("twonamesTest 1 failed");
64 if (t.twonamesTest2(val) != val) throw new Exception("twonamesTest 2 failed");
65 if (t.twonamesTest3(val) != val) throw new Exception("twonamesTest 3 failed");
68 namedanonspace val = namedanonspace.NamedAnonSpace2;
69 if (enum_thorough.namedanonspaceTest1(val) != val) throw new Exception("namedanonspaceTest 1 failed");
70 if (enum_thorough.namedanonspaceTest2(val) != val) throw new Exception("namedanonspaceTest 2 failed");
71 if (enum_thorough.namedanonspaceTest3(val) != val) throw new Exception("namedanonspaceTest 3 failed");
72 if (enum_thorough.namedanonspaceTest4(val) != val) throw new Exception("namedanonspaceTest 4 failed");
75 TemplateClassInt t = new TemplateClassInt();
76 TemplateClassInt.scientists galileo = TemplateClassInt.scientists.galileo;
78 if (t.scientistsTest1(galileo) != galileo) throw new Exception("scientistsTest 1 failed");
79 if (t.scientistsTest2(galileo) != galileo) throw new Exception("scientistsTest 2 failed");
80 if (t.scientistsTest3(galileo) != galileo) throw new Exception("scientistsTest 3 failed");
81 if (t.scientistsTest4(galileo) != galileo) throw new Exception("scientistsTest 4 failed");
82 if (t.scientistsTest5(galileo) != galileo) throw new Exception("scientistsTest 5 failed");
83 if (t.scientistsTest6(galileo) != galileo) throw new Exception("scientistsTest 6 failed");
84 if (t.scientistsTest7(galileo) != galileo) throw new Exception("scientistsTest 7 failed");
85 if (t.scientistsTest8(galileo) != galileo) throw new Exception("scientistsTest 8 failed");
86 if (t.scientistsTest9(galileo) != galileo) throw new Exception("scientistsTest 9 failed");
87 // if (t.scientistsTestA(galileo) != galileo) throw new Exception("scientistsTest A failed");
88 if (t.scientistsTestB(galileo) != galileo) throw new Exception("scientistsTest B failed");
89 // if (t.scientistsTestC(galileo) != galileo) throw new Exception("scientistsTest C failed");
90 if (t.scientistsTestD(galileo) != galileo) throw new Exception("scientistsTest D failed");
91 if (t.scientistsTestE(galileo) != galileo) throw new Exception("scientistsTest E failed");
92 if (t.scientistsTestF(galileo) != galileo) throw new Exception("scientistsTest F failed");
93 if (t.scientistsTestG(galileo) != galileo) throw new Exception("scientistsTest G failed");
94 if (t.scientistsTestH(galileo) != galileo) throw new Exception("scientistsTest H failed");
95 if (t.scientistsTestI(galileo) != galileo) throw new Exception("scientistsTest I failed");
96 if (t.scientistsTestJ(galileo) != galileo) throw new Exception("scientistsTest J failed");
98 if (enum_thorough.scientistsTest1(galileo) != galileo) throw new Exception("scientistsTest Global 1 failed");
99 if (enum_thorough.scientistsTest2(galileo) != galileo) throw new Exception("scientistsTest Global 2 failed");
100 if (enum_thorough.scientistsTest3(galileo) != galileo) throw new Exception("scientistsTest Global 3 failed");
101 if (enum_thorough.scientistsTest4(galileo) != galileo) throw new Exception("scientistsTest Global 4 failed");
102 if (enum_thorough.scientistsTest5(galileo) != galileo) throw new Exception("scientistsTest Global 5 failed");
103 if (enum_thorough.scientistsTest6(galileo) != galileo) throw new Exception("scientistsTest Global 6 failed");
104 if (enum_thorough.scientistsTest7(galileo) != galileo) throw new Exception("scientistsTest Global 7 failed");
105 if (enum_thorough.scientistsTest8(galileo) != galileo) throw new Exception("scientistsTest Global 8 failed");
108 TClassInt t = new TClassInt();
109 TClassInt.scientists bell = TClassInt.scientists.bell;
110 TemplateClassInt.scientists galileo = TemplateClassInt.scientists.galileo;
111 if (t.scientistsNameTest1(bell) != bell) throw new Exception("scientistsNameTest 1 failed");
112 if (t.scientistsNameTest2(bell) != bell) throw new Exception("scientistsNameTest 2 failed");
113 if (t.scientistsNameTest3(bell) != bell) throw new Exception("scientistsNameTest 3 failed");
114 if (t.scientistsNameTest4(bell) != bell) throw new Exception("scientistsNameTest 4 failed");
115 if (t.scientistsNameTest5(bell) != bell) throw new Exception("scientistsNameTest 5 failed");
116 if (t.scientistsNameTest6(bell) != bell) throw new Exception("scientistsNameTest 6 failed");
117 if (t.scientistsNameTest7(bell) != bell) throw new Exception("scientistsNameTest 7 failed");
118 if (t.scientistsNameTest8(bell) != bell) throw new Exception("scientistsNameTest 8 failed");
119 if (t.scientistsNameTest9(bell) != bell) throw new Exception("scientistsNameTest 9 failed");
120 // if (t.scientistsNameTestA(bell) != bell) throw new Exception("scientistsNameTest A failed");
121 if (t.scientistsNameTestB(bell) != bell) throw new Exception("scientistsNameTest B failed");
122 // if (t.scientistsNameTestC(bell) != bell) throw new Exception("scientistsNameTest C failed");
123 if (t.scientistsNameTestD(bell) != bell) throw new Exception("scientistsNameTest D failed");
124 if (t.scientistsNameTestE(bell) != bell) throw new Exception("scientistsNameTest E failed");
125 if (t.scientistsNameTestF(bell) != bell) throw new Exception("scientistsNameTest F failed");
126 if (t.scientistsNameTestG(bell) != bell) throw new Exception("scientistsNameTest G failed");
127 if (t.scientistsNameTestH(bell) != bell) throw new Exception("scientistsNameTest H failed");
128 if (t.scientistsNameTestI(bell) != bell) throw new Exception("scientistsNameTest I failed");
130 if (t.scientistsNameSpaceTest1(bell) != bell) throw new Exception("scientistsNameSpaceTest 1 failed");
131 if (t.scientistsNameSpaceTest2(bell) != bell) throw new Exception("scientistsNameSpaceTest 2 failed");
132 if (t.scientistsNameSpaceTest3(bell) != bell) throw new Exception("scientistsNameSpaceTest 3 failed");
133 if (t.scientistsNameSpaceTest4(bell) != bell) throw new Exception("scientistsNameSpaceTest 4 failed");
134 if (t.scientistsNameSpaceTest5(bell) != bell) throw new Exception("scientistsNameSpaceTest 5 failed");
135 if (t.scientistsNameSpaceTest6(bell) != bell) throw new Exception("scientistsNameSpaceTest 6 failed");
136 if (t.scientistsNameSpaceTest7(bell) != bell) throw new Exception("scientistsNameSpaceTest 7 failed");
138 if (t.scientistsOtherTest1(galileo) != galileo) throw new Exception("scientistsOtherTest 1 failed");
139 if (t.scientistsOtherTest2(galileo) != galileo) throw new Exception("scientistsOtherTest 2 failed");
140 if (t.scientistsOtherTest3(galileo) != galileo) throw new Exception("scientistsOtherTest 3 failed");
141 if (t.scientistsOtherTest4(galileo) != galileo) throw new Exception("scientistsOtherTest 4 failed");
142 if (t.scientistsOtherTest5(galileo) != galileo) throw new Exception("scientistsOtherTest 5 failed");
143 if (t.scientistsOtherTest6(galileo) != galileo) throw new Exception("scientistsOtherTest 6 failed");
144 if (t.scientistsOtherTest7(galileo) != galileo) throw new Exception("scientistsOtherTest 7 failed");
146 if (enum_thorough.scientistsNameTest1(bell) != bell) throw new Exception("scientistsNameTest Global 1 failed");
147 if (enum_thorough.scientistsNameTest2(bell) != bell) throw new Exception("scientistsNameTest Global 2 failed");
148 if (enum_thorough.scientistsNameTest3(bell) != bell) throw new Exception("scientistsNameTest Global 3 failed");
149 if (enum_thorough.scientistsNameTest4(bell) != bell) throw new Exception("scientistsNameTest Global 4 failed");
150 if (enum_thorough.scientistsNameTest5(bell) != bell) throw new Exception("scientistsNameTest Global 5 failed");
151 if (enum_thorough.scientistsNameTest6(bell) != bell) throw new Exception("scientistsNameTest Global 6 failed");
152 if (enum_thorough.scientistsNameTest7(bell) != bell) throw new Exception("scientistsNameTest Global 7 failed");
154 if (enum_thorough.scientistsNameSpaceTest1(bell) != bell) throw new Exception("scientistsNameSpaceTest Global 1 failed");
155 if (enum_thorough.scientistsNameSpaceTest2(bell) != bell) throw new Exception("scientistsNameSpaceTest Global 2 failed");
156 if (enum_thorough.scientistsNameSpaceTest3(bell) != bell) throw new Exception("scientistsNameSpaceTest Global 3 failed");
157 if (enum_thorough.scientistsNameSpaceTest4(bell) != bell) throw new Exception("scientistsNameSpaceTest Global 4 failed");
158 if (enum_thorough.scientistsNameSpaceTest5(bell) != bell) throw new Exception("scientistsNameSpaceTest Global 5 failed");
159 if (enum_thorough.scientistsNameSpaceTest6(bell) != bell) throw new Exception("scientistsNameSpaceTest Global 6 failed");
160 if (enum_thorough.scientistsNameSpaceTest7(bell) != bell) throw new Exception("scientistsNameSpaceTest Global 7 failed");
162 if (enum_thorough.scientistsNameSpaceTest8(bell) != bell) throw new Exception("scientistsNameSpaceTest Global 8 failed");
163 if (enum_thorough.scientistsNameSpaceTest9(bell) != bell) throw new Exception("scientistsNameSpaceTest Global 9 failed");
164 if (enum_thorough.scientistsNameSpaceTestA(bell) != bell) throw new Exception("scientistsNameSpaceTest Global A failed");
165 if (enum_thorough.scientistsNameSpaceTestB(bell) != bell) throw new Exception("scientistsNameSpaceTest Global B failed");
166 if (enum_thorough.scientistsNameSpaceTestC(bell) != bell) throw new Exception("scientistsNameSpaceTest Global C failed");
167 if (enum_thorough.scientistsNameSpaceTestD(bell) != bell) throw new Exception("scientistsNameSpaceTest Global D failed");
168 if (enum_thorough.scientistsNameSpaceTestE(bell) != bell) throw new Exception("scientistsNameSpaceTest Global E failed");
170 if (enum_thorough.scientistsNameSpaceTestF(bell) != bell) throw new Exception("scientistsNameSpaceTest Global F failed");
171 if (enum_thorough.scientistsNameSpaceTestG(bell) != bell) throw new Exception("scientistsNameSpaceTest Global G failed");
172 if (enum_thorough.scientistsNameSpaceTestH(bell) != bell) throw new Exception("scientistsNameSpaceTest Global H failed");
173 if (enum_thorough.scientistsNameSpaceTestI(bell) != bell) throw new Exception("scientistsNameSpaceTest Global I failed");
174 if (enum_thorough.scientistsNameSpaceTestJ(bell) != bell) throw new Exception("scientistsNameSpaceTest Global J failed");
175 if (enum_thorough.scientistsNameSpaceTestK(bell) != bell) throw new Exception("scientistsNameSpaceTest Global K failed");
176 if (enum_thorough.scientistsNameSpaceTestL(bell) != bell) throw new Exception("scientistsNameSpaceTest Global L failed");
179 newname val = newname.argh;
180 if (enum_thorough.renameTest1(val) != val) throw new Exception("renameTest Global 1 failed");
181 if (enum_thorough.renameTest2(val) != val) throw new Exception("renameTest Global 2 failed");
184 NewNameStruct n = new NewNameStruct();
185 if (n.renameTest1(NewNameStruct.enumeration.bang) != NewNameStruct.enumeration.bang) throw new Exception("renameTest 1 failed");
186 if (n.renameTest2(NewNameStruct.enumeration.bang) != NewNameStruct.enumeration.bang) throw new Exception("renameTest 2 failed");
187 if (n.renameTest3(NewNameStruct.simplerenamed.simple1) != NewNameStruct.simplerenamed.simple1) throw new Exception("renameTest 3 failed");
188 if (n.renameTest4(NewNameStruct.doublenamerenamed.doublename1) != NewNameStruct.doublenamerenamed.doublename1) throw new Exception("renameTest 4 failed");
189 if (n.renameTest5(NewNameStruct.doublenamerenamed.doublename1) != NewNameStruct.doublenamerenamed.doublename1) throw new Exception("renameTest 5 failed");
190 if (n.renameTest6(NewNameStruct.singlenamerenamed.singlename1) != NewNameStruct.singlenamerenamed.singlename1) throw new Exception("renameTest 6 failed");
193 if (enum_thorough.renameTest3(NewNameStruct.enumeration.bang) != NewNameStruct.enumeration.bang) throw new Exception("renameTest Global 3 failed");
194 if (enum_thorough.renameTest4(NewNameStruct.simplerenamed.simple1) != NewNameStruct.simplerenamed.simple1) throw new Exception("renameTest Global 4 failed");
195 if (enum_thorough.renameTest5(NewNameStruct.doublenamerenamed.doublename1) != NewNameStruct.doublenamerenamed.doublename1) throw new Exception("renameTest Global 5 failed");
196 if (enum_thorough.renameTest6(NewNameStruct.doublenamerenamed.doublename1) != NewNameStruct.doublenamerenamed.doublename1) throw new Exception("renameTest Global 6 failed");
197 if (enum_thorough.renameTest7(NewNameStruct.singlenamerenamed.singlename1) != NewNameStruct.singlenamerenamed.singlename1) throw new Exception("renameTest Global 7 failed");
200 TreesClass t = new TreesClass();
201 TreesClass.trees pine = TreesClass.trees.pine;
203 if (t.treesTest1(pine) != pine) throw new Exception("treesTest 1 failed");
204 if (t.treesTest2(pine) != pine) throw new Exception("treesTest 2 failed");
205 if (t.treesTest3(pine) != pine) throw new Exception("treesTest 3 failed");
206 if (t.treesTest4(pine) != pine) throw new Exception("treesTest 4 failed");
207 if (t.treesTest5(pine) != pine) throw new Exception("treesTest 5 failed");
208 if (t.treesTest6(pine) != pine) throw new Exception("treesTest 6 failed");
209 if (t.treesTest7(pine) != pine) throw new Exception("treesTest 7 failed");
210 if (t.treesTest8(pine) != pine) throw new Exception("treesTest 8 failed");
211 if (t.treesTest9(pine) != pine) throw new Exception("treesTest 9 failed");
212 if (t.treesTestA(pine) != pine) throw new Exception("treesTest A failed");
213 if (t.treesTestB(pine) != pine) throw new Exception("treesTest B failed");
214 if (t.treesTestC(pine) != pine) throw new Exception("treesTest C failed");
215 if (t.treesTestD(pine) != pine) throw new Exception("treesTest D failed");
216 if (t.treesTestE(pine) != pine) throw new Exception("treesTest E failed");
217 if (t.treesTestF(pine) != pine) throw new Exception("treesTest F failed");
218 if (t.treesTestG(pine) != pine) throw new Exception("treesTest G failed");
219 if (t.treesTestH(pine) != pine) throw new Exception("treesTest H failed");
220 if (t.treesTestI(pine) != pine) throw new Exception("treesTest I failed");
221 if (t.treesTestJ(pine) != pine) throw new Exception("treesTest J failed");
222 if (t.treesTestK(pine) != pine) throw new Exception("treesTest K failed");
223 if (t.treesTestL(pine) != pine) throw new Exception("treesTest L failed");
224 if (t.treesTestM(pine) != pine) throw new Exception("treesTest M failed");
225 if (t.treesTestN(pine) != pine) throw new Exception("treesTest N failed");
226 if (t.treesTestO(pine) != pine) throw new Exception("treesTest O failed");
228 if (enum_thorough.treesTest1(pine) != pine) throw new Exception("treesTest Global 1 failed");
229 if (enum_thorough.treesTest2(pine) != pine) throw new Exception("treesTest Global 2 failed");
230 if (enum_thorough.treesTest3(pine) != pine) throw new Exception("treesTest Global 3 failed");
231 if (enum_thorough.treesTest4(pine) != pine) throw new Exception("treesTest Global 4 failed");
232 if (enum_thorough.treesTest5(pine) != pine) throw new Exception("treesTest Global 5 failed");
233 if (enum_thorough.treesTest6(pine) != pine) throw new Exception("treesTest Global 6 failed");
234 if (enum_thorough.treesTest7(pine) != pine) throw new Exception("treesTest Global 7 failed");
235 if (enum_thorough.treesTest8(pine) != pine) throw new Exception("treesTest Global 8 failed");
236 if (enum_thorough.treesTest9(pine) != pine) throw new Exception("treesTest Global 9 failed");
237 if (enum_thorough.treesTestA(pine) != pine) throw new Exception("treesTest Global A failed");
238 if (enum_thorough.treesTestB(pine) != pine) throw new Exception("treesTest Global B failed");
239 if (enum_thorough.treesTestC(pine) != pine) throw new Exception("treesTest Global C failed");
240 if (enum_thorough.treesTestD(pine) != pine) throw new Exception("treesTest Global D failed");
241 if (enum_thorough.treesTestE(pine) != pine) throw new Exception("treesTest Global E failed");
242 if (enum_thorough.treesTestF(pine) != pine) throw new Exception("treesTest Global F failed");
243 if (enum_thorough.treesTestG(pine) != pine) throw new Exception("treesTest Global G failed");
244 if (enum_thorough.treesTestH(pine) != pine) throw new Exception("treesTest Global H failed");
245 if (enum_thorough.treesTestI(pine) != pine) throw new Exception("treesTest Global I failed");
246 if (enum_thorough.treesTestJ(pine) != pine) throw new Exception("treesTest Global J failed");
247 if (enum_thorough.treesTestK(pine) != pine) throw new Exception("treesTest Global K failed");
248 if (enum_thorough.treesTestL(pine) != pine) throw new Exception("treesTest Global L failed");
249 if (enum_thorough.treesTestM(pine) != pine) throw new Exception("treesTest Global M failed");
250 // if (enum_thorough.treesTestN(pine) != pine) throw new Exception("treesTest Global N failed");
251 if (enum_thorough.treesTestO(pine) != pine) throw new Exception("treesTest Global O failed");
252 if (enum_thorough.treesTestP(pine) != pine) throw new Exception("treesTest Global P failed");
253 if (enum_thorough.treesTestQ(pine) != pine) throw new Exception("treesTest Global Q failed");
254 if (enum_thorough.treesTestR(pine) != pine) throw new Exception("treesTest Global R failed");
257 HairStruct h = new HairStruct();
258 HairStruct.hair ginger = HairStruct.hair.ginger;
260 if (h.hairTest1(ginger) != ginger) throw new Exception("hairTest 1 failed");
261 if (h.hairTest2(ginger) != ginger) throw new Exception("hairTest 2 failed");
262 if (h.hairTest3(ginger) != ginger) throw new Exception("hairTest 3 failed");
263 if (h.hairTest4(ginger) != ginger) throw new Exception("hairTest 4 failed");
264 if (h.hairTest5(ginger) != ginger) throw new Exception("hairTest 5 failed");
265 if (h.hairTest6(ginger) != ginger) throw new Exception("hairTest 6 failed");
266 if (h.hairTest7(ginger) != ginger) throw new Exception("hairTest 7 failed");
267 if (h.hairTest8(ginger) != ginger) throw new Exception("hairTest 8 failed");
268 if (h.hairTest9(ginger) != ginger) throw new Exception("hairTest 9 failed");
269 if (h.hairTestA(ginger) != ginger) throw new Exception("hairTest A failed");
270 if (h.hairTestB(ginger) != ginger) throw new Exception("hairTest B failed");
272 colour red = colour.red;
273 if (h.colourTest1(red) != red) throw new Exception("colourTest HairStruct 1 failed");
274 if (h.colourTest2(red) != red) throw new Exception("colourTest HairStruct 2 failed");
275 if (h.namedanonTest1(namedanon.NamedAnon2) != namedanon.NamedAnon2) throw new Exception("namedanonTest HairStruct 1 failed");
276 if (h.namedanonspaceTest1(namedanonspace.NamedAnonSpace2) != namedanonspace.NamedAnonSpace2) throw new Exception("namedanonspaceTest HairStruct 1 failed");
278 TreesClass.trees fir = TreesClass.trees.fir;
279 if (h.treesGlobalTest1(fir) != fir) throw new Exception("treesGlobalTest1 HairStruct 1 failed");
280 if (h.treesGlobalTest2(fir) != fir) throw new Exception("treesGlobalTest1 HairStruct 2 failed");
281 if (h.treesGlobalTest3(fir) != fir) throw new Exception("treesGlobalTest1 HairStruct 3 failed");
282 if (h.treesGlobalTest4(fir) != fir) throw new Exception("treesGlobalTest1 HairStruct 4 failed");
285 HairStruct.hair blonde = HairStruct.hair.blonde;
286 if (enum_thorough.hairTest1(blonde) != blonde) throw new Exception("hairTest Global 1 failed");
287 if (enum_thorough.hairTest2(blonde) != blonde) throw new Exception("hairTest Global 2 failed");
288 if (enum_thorough.hairTest3(blonde) != blonde) throw new Exception("hairTest Global 3 failed");
289 if (enum_thorough.hairTest4(blonde) != blonde) throw new Exception("hairTest Global 4 failed");
290 if (enum_thorough.hairTest5(blonde) != blonde) throw new Exception("hairTest Global 5 failed");
291 if (enum_thorough.hairTest6(blonde) != blonde) throw new Exception("hairTest Global 6 failed");
292 if (enum_thorough.hairTest7(blonde) != blonde) throw new Exception("hairTest Global 7 failed");
293 if (enum_thorough.hairTest8(blonde) != blonde) throw new Exception("hairTest Global 8 failed");
294 if (enum_thorough.hairTest9(blonde) != blonde) throw new Exception("hairTest Global 9 failed");
295 if (enum_thorough.hairTestA(blonde) != blonde) throw new Exception("hairTest Global A failed");
296 if (enum_thorough.hairTestB(blonde) != blonde) throw new Exception("hairTest Global B failed");
297 if (enum_thorough.hairTestC(blonde) != blonde) throw new Exception("hairTest Global C failed");
299 if (enum_thorough.hairTestA1(blonde) != blonde) throw new Exception("hairTest Global A1 failed");
300 if (enum_thorough.hairTestA2(blonde) != blonde) throw new Exception("hairTest Global A2 failed");
301 if (enum_thorough.hairTestA3(blonde) != blonde) throw new Exception("hairTest Global A3 failed");
302 if (enum_thorough.hairTestA4(blonde) != blonde) throw new Exception("hairTest Global A4 failed");
303 if (enum_thorough.hairTestA5(blonde) != blonde) throw new Exception("hairTest Global A5 failed");
304 if (enum_thorough.hairTestA6(blonde) != blonde) throw new Exception("hairTest Global A6 failed");
305 if (enum_thorough.hairTestA7(blonde) != blonde) throw new Exception("hairTest Global A7 failed");
306 if (enum_thorough.hairTestA8(blonde) != blonde) throw new Exception("hairTest Global A8 failed");
307 if (enum_thorough.hairTestA9(blonde) != blonde) throw new Exception("hairTest Global A9 failed");
308 if (enum_thorough.hairTestAA(blonde) != blonde) throw new Exception("hairTest Global AA failed");
309 if (enum_thorough.hairTestAB(blonde) != blonde) throw new Exception("hairTest Global AB failed");
310 if (enum_thorough.hairTestAC(blonde) != blonde) throw new Exception("hairTest Global AC failed");
312 if (enum_thorough.hairTestB1(blonde) != blonde) throw new Exception("hairTest Global B1 failed");
313 if (enum_thorough.hairTestB2(blonde) != blonde) throw new Exception("hairTest Global B2 failed");
314 if (enum_thorough.hairTestB3(blonde) != blonde) throw new Exception("hairTest Global B3 failed");
315 if (enum_thorough.hairTestB4(blonde) != blonde) throw new Exception("hairTest Global B4 failed");
316 if (enum_thorough.hairTestB5(blonde) != blonde) throw new Exception("hairTest Global B5 failed");
317 if (enum_thorough.hairTestB6(blonde) != blonde) throw new Exception("hairTest Global B6 failed");
318 if (enum_thorough.hairTestB7(blonde) != blonde) throw new Exception("hairTest Global B7 failed");
319 if (enum_thorough.hairTestB8(blonde) != blonde) throw new Exception("hairTest Global B8 failed");
320 if (enum_thorough.hairTestB9(blonde) != blonde) throw new Exception("hairTest Global B9 failed");
321 if (enum_thorough.hairTestBA(blonde) != blonde) throw new Exception("hairTest Global BA failed");
322 if (enum_thorough.hairTestBB(blonde) != blonde) throw new Exception("hairTest Global BB failed");
323 if (enum_thorough.hairTestBC(blonde) != blonde) throw new Exception("hairTest Global BC failed");
325 if (enum_thorough.hairTestC1(blonde) != blonde) throw new Exception("hairTest Global C1 failed");
326 if (enum_thorough.hairTestC2(blonde) != blonde) throw new Exception("hairTest Global C2 failed");
327 if (enum_thorough.hairTestC3(blonde) != blonde) throw new Exception("hairTest Global C3 failed");
328 if (enum_thorough.hairTestC4(blonde) != blonde) throw new Exception("hairTest Global C4 failed");
329 if (enum_thorough.hairTestC5(blonde) != blonde) throw new Exception("hairTest Global C5 failed");
330 if (enum_thorough.hairTestC6(blonde) != blonde) throw new Exception("hairTest Global C6 failed");
331 if (enum_thorough.hairTestC7(blonde) != blonde) throw new Exception("hairTest Global C7 failed");
332 if (enum_thorough.hairTestC8(blonde) != blonde) throw new Exception("hairTest Global C8 failed");
333 if (enum_thorough.hairTestC9(blonde) != blonde) throw new Exception("hairTest Global C9 failed");
334 if (enum_thorough.hairTestCA(blonde) != blonde) throw new Exception("hairTest Global CA failed");
335 if (enum_thorough.hairTestCB(blonde) != blonde) throw new Exception("hairTest Global CB failed");
336 if (enum_thorough.hairTestCC(blonde) != blonde) throw new Exception("hairTest Global CC failed");
339 FirStruct f = new FirStruct();
340 HairStruct.hair blonde = HairStruct.hair.blonde;
342 if (f.hairTestFir1(blonde) != blonde) throw new Exception("hairTestFir 1 failed");
343 if (f.hairTestFir2(blonde) != blonde) throw new Exception("hairTestFir 2 failed");
344 if (f.hairTestFir3(blonde) != blonde) throw new Exception("hairTestFir 3 failed");
345 if (f.hairTestFir4(blonde) != blonde) throw new Exception("hairTestFir 4 failed");
346 if (f.hairTestFir5(blonde) != blonde) throw new Exception("hairTestFir 5 failed");
347 if (f.hairTestFir6(blonde) != blonde) throw new Exception("hairTestFir 6 failed");
348 if (f.hairTestFir7(blonde) != blonde) throw new Exception("hairTestFir 7 failed");
349 if (f.hairTestFir8(blonde) != blonde) throw new Exception("hairTestFir 8 failed");
350 if (f.hairTestFir9(blonde) != blonde) throw new Exception("hairTestFir 9 failed");
351 if (f.hairTestFirA(blonde) != blonde) throw new Exception("hairTestFir A failed");
354 enum_thorough.GlobalInstance = enum_thorough.globalinstance2;
355 if (enum_thorough.GlobalInstance != enum_thorough.globalinstance2) throw new Exception("GlobalInstance 1 failed");
357 Instances i = new Instances();
358 i.MemberInstance = Instances.memberinstance3;
359 if (i.MemberInstance != Instances.memberinstance3) throw new Exception("MemberInstance 1 failed");
361 // ignore enum item tests start
363 if ((int)enum_thorough.ignoreATest(IgnoreTest.IgnoreA.ignoreA_zero) != 0) throw new Exception("ignoreATest 0 failed");
364 if ((int)enum_thorough.ignoreATest(IgnoreTest.IgnoreA.ignoreA_three) != 3) throw new Exception("ignoreATest 3 failed");
365 if ((int)enum_thorough.ignoreATest(IgnoreTest.IgnoreA.ignoreA_ten) != 10) throw new Exception("ignoreATest 10 failed");
366 if ((int)enum_thorough.ignoreATest(IgnoreTest.IgnoreA.ignoreA_eleven) != 11) throw new Exception("ignoreATest 11 failed");
367 if ((int)enum_thorough.ignoreATest(IgnoreTest.IgnoreA.ignoreA_thirteen) != 13) throw new Exception("ignoreATest 13 failed");
368 if ((int)enum_thorough.ignoreATest(IgnoreTest.IgnoreA.ignoreA_fourteen) != 14) throw new Exception("ignoreATest 14 failed");
369 if ((int)enum_thorough.ignoreATest(IgnoreTest.IgnoreA.ignoreA_twenty) != 20) throw new Exception("ignoreATest 20 failed");
370 if ((int)enum_thorough.ignoreATest(IgnoreTest.IgnoreA.ignoreA_thirty) != 30) throw new Exception("ignoreATest 30 failed");
371 if ((int)enum_thorough.ignoreATest(IgnoreTest.IgnoreA.ignoreA_thirty_two) != 32) throw new Exception("ignoreATest 32 failed");
372 if ((int)enum_thorough.ignoreATest(IgnoreTest.IgnoreA.ignoreA_thirty_three) != 33) throw new Exception("ignoreATest 33 failed");
375 if ((int)enum_thorough.ignoreBTest(IgnoreTest.IgnoreB.ignoreB_eleven) != 11) throw new Exception("ignoreBTest 11 failed");
376 if ((int)enum_thorough.ignoreBTest(IgnoreTest.IgnoreB.ignoreB_twelve) != 12) throw new Exception("ignoreBTest 12 failed");
377 if ((int)enum_thorough.ignoreBTest(IgnoreTest.IgnoreB.ignoreB_thirty_one) != 31) throw new Exception("ignoreBTest 31 failed");
378 if ((int)enum_thorough.ignoreBTest(IgnoreTest.IgnoreB.ignoreB_thirty_two) != 32) throw new Exception("ignoreBTest 32 failed");
379 if ((int)enum_thorough.ignoreBTest(IgnoreTest.IgnoreB.ignoreB_forty_one) != 41) throw new Exception("ignoreBTest 41 failed");
380 if ((int)enum_thorough.ignoreBTest(IgnoreTest.IgnoreB.ignoreB_forty_two) != 42) throw new Exception("ignoreBTest 42 failed");
383 if ((int)enum_thorough.ignoreCTest(IgnoreTest.IgnoreC.ignoreC_ten) != 10) throw new Exception("ignoreCTest 10 failed");
384 if ((int)enum_thorough.ignoreCTest(IgnoreTest.IgnoreC.ignoreC_twelve) != 12) throw new Exception("ignoreCTest 12 failed");
385 if ((int)enum_thorough.ignoreCTest(IgnoreTest.IgnoreC.ignoreC_thirty) != 30) throw new Exception("ignoreCTest 30 failed");
386 if ((int)enum_thorough.ignoreCTest(IgnoreTest.IgnoreC.ignoreC_thirty_two) != 32) throw new Exception("ignoreCTest 32 failed");
387 if ((int)enum_thorough.ignoreCTest(IgnoreTest.IgnoreC.ignoreC_forty) != 40) throw new Exception("ignoreCTest 40 failed");
388 if ((int)enum_thorough.ignoreCTest(IgnoreTest.IgnoreC.ignoreC_forty_two) != 42) throw new Exception("ignoreCTest 42 failed");
391 if ((int)enum_thorough.ignoreDTest(IgnoreTest.IgnoreD.ignoreD_twenty_one) != 21) throw new Exception("ignoreDTest 21 failed");
392 if ((int)enum_thorough.ignoreDTest(IgnoreTest.IgnoreD.ignoreD_twenty_two) != 22) throw new Exception("ignoreDTest 22 failed");
395 if ((int)enum_thorough.ignoreETest(IgnoreTest.IgnoreE.ignoreE_zero) != 0) throw new Exception("ignoreETest 0 failed");
396 if ((int)enum_thorough.ignoreETest(IgnoreTest.IgnoreE.ignoreE_twenty_one) != 21) throw new Exception("ignoreETest 21 failed");
397 if ((int)enum_thorough.ignoreETest(IgnoreTest.IgnoreE.ignoreE_twenty_two) != 22) throw new Exception("ignoreETest 22 failed");
399 // ignore enum item tests end
401 if ((int)enum_thorough.repeatTest(repeat.one) != 1) throw new Exception("repeatTest 1 failed");
402 if ((int)enum_thorough.repeatTest(repeat.initial) != 1) throw new Exception("repeatTest 2 failed");
403 if ((int)enum_thorough.repeatTest(repeat.two) != 2) throw new Exception("repeatTest 3 failed");
404 if ((int)enum_thorough.repeatTest(repeat.three) != 3) throw new Exception("repeatTest 4 failed");
405 if ((int)enum_thorough.repeatTest(repeat.llast) != 3) throw new Exception("repeatTest 5 failed");
406 if ((int)enum_thorough.repeatTest(repeat.end) != 3) throw new Exception("repeatTest 6 failed");