diff options
Diffstat (limited to 'OpenSim/Tests')
-rw-r--r-- | OpenSim/Tests/OpenSim/Region/ScriptEngine/Shared/CodeTools/LSLCompilerTest.cs | 136 |
1 files changed, 68 insertions, 68 deletions
diff --git a/OpenSim/Tests/OpenSim/Region/ScriptEngine/Shared/CodeTools/LSLCompilerTest.cs b/OpenSim/Tests/OpenSim/Region/ScriptEngine/Shared/CodeTools/LSLCompilerTest.cs index 3413d0d..890a634 100644 --- a/OpenSim/Tests/OpenSim/Region/ScriptEngine/Shared/CodeTools/LSLCompilerTest.cs +++ b/OpenSim/Tests/OpenSim/Region/ScriptEngine/Shared/CodeTools/LSLCompilerTest.cs | |||
@@ -56,8 +56,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools.Tests | |||
56 | } | 56 | } |
57 | "; | 57 | "; |
58 | 58 | ||
59 | CSCodeGenerator cg = new CSCodeGenerator(input); | 59 | CSCodeGenerator cg = new CSCodeGenerator(); |
60 | string output = cg.Generate(); | 60 | string output = cg.Convert(input); |
61 | Assert.AreEqual(expected, output); | 61 | Assert.AreEqual(expected, output); |
62 | } | 62 | } |
63 | 63 | ||
@@ -87,8 +87,8 @@ state another_state | |||
87 | } | 87 | } |
88 | "; | 88 | "; |
89 | 89 | ||
90 | CSCodeGenerator cg = new CSCodeGenerator(input); | 90 | CSCodeGenerator cg = new CSCodeGenerator(); |
91 | string output = cg.Generate(); | 91 | string output = cg.Convert(input); |
92 | Assert.AreEqual(expected, output); | 92 | Assert.AreEqual(expected, output); |
93 | } | 93 | } |
94 | 94 | ||
@@ -108,8 +108,8 @@ state another_state | |||
108 | } | 108 | } |
109 | "; | 109 | "; |
110 | 110 | ||
111 | CSCodeGenerator cg = new CSCodeGenerator(input); | 111 | CSCodeGenerator cg = new CSCodeGenerator(); |
112 | string output = cg.Generate(); | 112 | string output = cg.Convert(input); |
113 | Assert.AreEqual(expected, output); | 113 | Assert.AreEqual(expected, output); |
114 | } | 114 | } |
115 | 115 | ||
@@ -131,8 +131,8 @@ state another_state | |||
131 | } | 131 | } |
132 | "; | 132 | "; |
133 | 133 | ||
134 | CSCodeGenerator cg = new CSCodeGenerator(input); | 134 | CSCodeGenerator cg = new CSCodeGenerator(); |
135 | string output = cg.Generate(); | 135 | string output = cg.Convert(input); |
136 | Assert.AreEqual(expected, output); | 136 | Assert.AreEqual(expected, output); |
137 | } | 137 | } |
138 | 138 | ||
@@ -158,8 +158,8 @@ state another_state | |||
158 | } | 158 | } |
159 | "; | 159 | "; |
160 | 160 | ||
161 | CSCodeGenerator cg = new CSCodeGenerator(input); | 161 | CSCodeGenerator cg = new CSCodeGenerator(); |
162 | string output = cg.Generate(); | 162 | string output = cg.Convert(input); |
163 | Assert.AreEqual(expected, output); | 163 | Assert.AreEqual(expected, output); |
164 | } | 164 | } |
165 | 165 | ||
@@ -187,8 +187,8 @@ state another_state | |||
187 | } | 187 | } |
188 | "; | 188 | "; |
189 | 189 | ||
190 | CSCodeGenerator cg = new CSCodeGenerator(input); | 190 | CSCodeGenerator cg = new CSCodeGenerator(); |
191 | string output = cg.Generate(); | 191 | string output = cg.Convert(input); |
192 | Assert.AreEqual(expected, output); | 192 | Assert.AreEqual(expected, output); |
193 | } | 193 | } |
194 | 194 | ||
@@ -214,8 +214,8 @@ state another_state | |||
214 | } | 214 | } |
215 | "; | 215 | "; |
216 | 216 | ||
217 | CSCodeGenerator cg = new CSCodeGenerator(input); | 217 | CSCodeGenerator cg = new CSCodeGenerator(); |
218 | string output = cg.Generate(); | 218 | string output = cg.Convert(input); |
219 | Assert.AreEqual(expected, output); | 219 | Assert.AreEqual(expected, output); |
220 | } | 220 | } |
221 | 221 | ||
@@ -253,8 +253,8 @@ state another_state | |||
253 | } | 253 | } |
254 | "; | 254 | "; |
255 | 255 | ||
256 | CSCodeGenerator cg = new CSCodeGenerator(input); | 256 | CSCodeGenerator cg = new CSCodeGenerator(); |
257 | string output = cg.Generate(); | 257 | string output = cg.Convert(input); |
258 | Assert.AreEqual(expected, output); | 258 | Assert.AreEqual(expected, output); |
259 | } | 259 | } |
260 | 260 | ||
@@ -306,8 +306,8 @@ state another_state | |||
306 | } | 306 | } |
307 | "; | 307 | "; |
308 | 308 | ||
309 | CSCodeGenerator cg = new CSCodeGenerator(input); | 309 | CSCodeGenerator cg = new CSCodeGenerator(); |
310 | string output = cg.Generate(); | 310 | string output = cg.Convert(input); |
311 | Assert.AreEqual(expected, output); | 311 | Assert.AreEqual(expected, output); |
312 | } | 312 | } |
313 | 313 | ||
@@ -329,8 +329,8 @@ default | |||
329 | } | 329 | } |
330 | "; | 330 | "; |
331 | 331 | ||
332 | CSCodeGenerator cg = new CSCodeGenerator(input); | 332 | CSCodeGenerator cg = new CSCodeGenerator(); |
333 | string output = cg.Generate(); | 333 | string output = cg.Convert(input); |
334 | Assert.AreEqual(expected, output); | 334 | Assert.AreEqual(expected, output); |
335 | } | 335 | } |
336 | 336 | ||
@@ -368,8 +368,8 @@ default | |||
368 | } | 368 | } |
369 | "; | 369 | "; |
370 | 370 | ||
371 | CSCodeGenerator cg = new CSCodeGenerator(input); | 371 | CSCodeGenerator cg = new CSCodeGenerator(); |
372 | string output = cg.Generate(); | 372 | string output = cg.Convert(input); |
373 | Assert.AreEqual(expected, output); | 373 | Assert.AreEqual(expected, output); |
374 | } | 374 | } |
375 | 375 | ||
@@ -413,8 +413,8 @@ default | |||
413 | } | 413 | } |
414 | "; | 414 | "; |
415 | 415 | ||
416 | CSCodeGenerator cg = new CSCodeGenerator(input); | 416 | CSCodeGenerator cg = new CSCodeGenerator(); |
417 | string output = cg.Generate(); | 417 | string output = cg.Convert(input); |
418 | Assert.AreEqual(expected, output); | 418 | Assert.AreEqual(expected, output); |
419 | } | 419 | } |
420 | 420 | ||
@@ -469,8 +469,8 @@ default | |||
469 | } | 469 | } |
470 | "; | 470 | "; |
471 | 471 | ||
472 | CSCodeGenerator cg = new CSCodeGenerator(input); | 472 | CSCodeGenerator cg = new CSCodeGenerator(); |
473 | string output = cg.Generate(); | 473 | string output = cg.Convert(input); |
474 | Assert.AreEqual(expected, output); | 474 | Assert.AreEqual(expected, output); |
475 | } | 475 | } |
476 | 476 | ||
@@ -524,8 +524,8 @@ default | |||
524 | } | 524 | } |
525 | "; | 525 | "; |
526 | 526 | ||
527 | CSCodeGenerator cg = new CSCodeGenerator(input); | 527 | CSCodeGenerator cg = new CSCodeGenerator(); |
528 | string output = cg.Generate(); | 528 | string output = cg.Convert(input); |
529 | Assert.AreEqual(expected, output); | 529 | Assert.AreEqual(expected, output); |
530 | } | 530 | } |
531 | 531 | ||
@@ -552,8 +552,8 @@ default | |||
552 | } | 552 | } |
553 | "; | 553 | "; |
554 | 554 | ||
555 | CSCodeGenerator cg = new CSCodeGenerator(input); | 555 | CSCodeGenerator cg = new CSCodeGenerator(); |
556 | string output = cg.Generate(); | 556 | string output = cg.Convert(input); |
557 | Assert.AreEqual(expected, output); | 557 | Assert.AreEqual(expected, output); |
558 | } | 558 | } |
559 | 559 | ||
@@ -579,8 +579,8 @@ default | |||
579 | } | 579 | } |
580 | "; | 580 | "; |
581 | 581 | ||
582 | CSCodeGenerator cg = new CSCodeGenerator(input); | 582 | CSCodeGenerator cg = new CSCodeGenerator(); |
583 | string output = cg.Generate(); | 583 | string output = cg.Convert(input); |
584 | Assert.AreEqual(expected, output); | 584 | Assert.AreEqual(expected, output); |
585 | } | 585 | } |
586 | 586 | ||
@@ -608,8 +608,8 @@ default | |||
608 | } | 608 | } |
609 | "; | 609 | "; |
610 | 610 | ||
611 | CSCodeGenerator cg = new CSCodeGenerator(input); | 611 | CSCodeGenerator cg = new CSCodeGenerator(); |
612 | string output = cg.Generate(); | 612 | string output = cg.Convert(input); |
613 | Assert.AreEqual(expected, output); | 613 | Assert.AreEqual(expected, output); |
614 | } | 614 | } |
615 | 615 | ||
@@ -639,8 +639,8 @@ default | |||
639 | } | 639 | } |
640 | "; | 640 | "; |
641 | 641 | ||
642 | CSCodeGenerator cg = new CSCodeGenerator(input); | 642 | CSCodeGenerator cg = new CSCodeGenerator(); |
643 | string output = cg.Generate(); | 643 | string output = cg.Convert(input); |
644 | Assert.AreEqual(expected, output); | 644 | Assert.AreEqual(expected, output); |
645 | } | 645 | } |
646 | 646 | ||
@@ -668,8 +668,8 @@ default | |||
668 | } | 668 | } |
669 | "; | 669 | "; |
670 | 670 | ||
671 | CSCodeGenerator cg = new CSCodeGenerator(input); | 671 | CSCodeGenerator cg = new CSCodeGenerator(); |
672 | string output = cg.Generate(); | 672 | string output = cg.Convert(input); |
673 | Assert.AreEqual(expected, output); | 673 | Assert.AreEqual(expected, output); |
674 | } | 674 | } |
675 | 675 | ||
@@ -773,8 +773,8 @@ default | |||
773 | } | 773 | } |
774 | "; | 774 | "; |
775 | 775 | ||
776 | CSCodeGenerator cg = new CSCodeGenerator(input); | 776 | CSCodeGenerator cg = new CSCodeGenerator(); |
777 | string output = cg.Generate(); | 777 | string output = cg.Convert(input); |
778 | Assert.AreEqual(expected, output); | 778 | Assert.AreEqual(expected, output); |
779 | } | 779 | } |
780 | 780 | ||
@@ -880,8 +880,8 @@ default | |||
880 | } | 880 | } |
881 | "; | 881 | "; |
882 | 882 | ||
883 | CSCodeGenerator cg = new CSCodeGenerator(input); | 883 | CSCodeGenerator cg = new CSCodeGenerator(); |
884 | string output = cg.Generate(); | 884 | string output = cg.Convert(input); |
885 | Assert.AreEqual(expected, output); | 885 | Assert.AreEqual(expected, output); |
886 | } | 886 | } |
887 | 887 | ||
@@ -921,8 +921,8 @@ default | |||
921 | } | 921 | } |
922 | "; | 922 | "; |
923 | 923 | ||
924 | CSCodeGenerator cg = new CSCodeGenerator(input); | 924 | CSCodeGenerator cg = new CSCodeGenerator(); |
925 | string output = cg.Generate(); | 925 | string output = cg.Convert(input); |
926 | Assert.AreEqual(expected, output); | 926 | Assert.AreEqual(expected, output); |
927 | } | 927 | } |
928 | 928 | ||
@@ -966,8 +966,8 @@ default | |||
966 | } | 966 | } |
967 | "; | 967 | "; |
968 | 968 | ||
969 | CSCodeGenerator cg = new CSCodeGenerator(input); | 969 | CSCodeGenerator cg = new CSCodeGenerator(); |
970 | string output = cg.Generate(); | 970 | string output = cg.Convert(input); |
971 | Assert.AreEqual(expected, output); | 971 | Assert.AreEqual(expected, output); |
972 | } | 972 | } |
973 | 973 | ||
@@ -1011,8 +1011,8 @@ default | |||
1011 | } | 1011 | } |
1012 | "; | 1012 | "; |
1013 | 1013 | ||
1014 | CSCodeGenerator cg = new CSCodeGenerator(input); | 1014 | CSCodeGenerator cg = new CSCodeGenerator(); |
1015 | string output = cg.Generate(); | 1015 | string output = cg.Convert(input); |
1016 | Assert.AreEqual(expected, output); | 1016 | Assert.AreEqual(expected, output); |
1017 | } | 1017 | } |
1018 | 1018 | ||
@@ -1064,8 +1064,8 @@ default | |||
1064 | } | 1064 | } |
1065 | "; | 1065 | "; |
1066 | 1066 | ||
1067 | CSCodeGenerator cg = new CSCodeGenerator(input); | 1067 | CSCodeGenerator cg = new CSCodeGenerator(); |
1068 | string output = cg.Generate(); | 1068 | string output = cg.Convert(input); |
1069 | Assert.AreEqual(expected, output); | 1069 | Assert.AreEqual(expected, output); |
1070 | } | 1070 | } |
1071 | 1071 | ||
@@ -1101,8 +1101,8 @@ default | |||
1101 | } | 1101 | } |
1102 | "; | 1102 | "; |
1103 | 1103 | ||
1104 | CSCodeGenerator cg = new CSCodeGenerator(input); | 1104 | CSCodeGenerator cg = new CSCodeGenerator(); |
1105 | string output = cg.Generate(); | 1105 | string output = cg.Convert(input); |
1106 | Assert.AreEqual(expected, output); | 1106 | Assert.AreEqual(expected, output); |
1107 | } | 1107 | } |
1108 | 1108 | ||
@@ -1147,8 +1147,8 @@ default | |||
1147 | } | 1147 | } |
1148 | "; | 1148 | "; |
1149 | 1149 | ||
1150 | CSCodeGenerator cg = new CSCodeGenerator(input); | 1150 | CSCodeGenerator cg = new CSCodeGenerator(); |
1151 | string output = cg.Generate(); | 1151 | string output = cg.Convert(input); |
1152 | Assert.AreEqual(expected, output); | 1152 | Assert.AreEqual(expected, output); |
1153 | } | 1153 | } |
1154 | 1154 | ||
@@ -1188,8 +1188,8 @@ state statetwo | |||
1188 | } | 1188 | } |
1189 | "; | 1189 | "; |
1190 | 1190 | ||
1191 | CSCodeGenerator cg = new CSCodeGenerator(input); | 1191 | CSCodeGenerator cg = new CSCodeGenerator(); |
1192 | string output = cg.Generate(); | 1192 | string output = cg.Convert(input); |
1193 | Assert.AreEqual(expected, output); | 1193 | Assert.AreEqual(expected, output); |
1194 | } | 1194 | } |
1195 | 1195 | ||
@@ -1221,8 +1221,8 @@ default | |||
1221 | } | 1221 | } |
1222 | "; | 1222 | "; |
1223 | 1223 | ||
1224 | CSCodeGenerator cg = new CSCodeGenerator(input); | 1224 | CSCodeGenerator cg = new CSCodeGenerator(); |
1225 | string output = cg.Generate(); | 1225 | string output = cg.Convert(input); |
1226 | Assert.AreEqual(expected, output); | 1226 | Assert.AreEqual(expected, output); |
1227 | } | 1227 | } |
1228 | 1228 | ||
@@ -1252,8 +1252,8 @@ default | |||
1252 | } | 1252 | } |
1253 | "; | 1253 | "; |
1254 | 1254 | ||
1255 | CSCodeGenerator cg = new CSCodeGenerator(input); | 1255 | CSCodeGenerator cg = new CSCodeGenerator(); |
1256 | string output = cg.Generate(); | 1256 | string output = cg.Convert(input); |
1257 | Assert.AreEqual(expected, output); | 1257 | Assert.AreEqual(expected, output); |
1258 | } | 1258 | } |
1259 | 1259 | ||
@@ -1296,8 +1296,8 @@ default | |||
1296 | } | 1296 | } |
1297 | "; | 1297 | "; |
1298 | 1298 | ||
1299 | CSCodeGenerator cg = new CSCodeGenerator(input); | 1299 | CSCodeGenerator cg = new CSCodeGenerator(); |
1300 | string output = cg.Generate(); | 1300 | string output = cg.Convert(input); |
1301 | Assert.AreEqual(expected, output); | 1301 | Assert.AreEqual(expected, output); |
1302 | } | 1302 | } |
1303 | 1303 | ||
@@ -1329,8 +1329,8 @@ default | |||
1329 | } | 1329 | } |
1330 | "; | 1330 | "; |
1331 | 1331 | ||
1332 | CSCodeGenerator cg = new CSCodeGenerator(input); | 1332 | CSCodeGenerator cg = new CSCodeGenerator(); |
1333 | string output = cg.Generate(); | 1333 | string output = cg.Convert(input); |
1334 | Assert.AreEqual(expected, output); | 1334 | Assert.AreEqual(expected, output); |
1335 | } | 1335 | } |
1336 | 1336 | ||
@@ -1354,8 +1354,8 @@ default | |||
1354 | } | 1354 | } |
1355 | "; | 1355 | "; |
1356 | 1356 | ||
1357 | CSCodeGenerator cg = new CSCodeGenerator(input); | 1357 | CSCodeGenerator cg = new CSCodeGenerator(); |
1358 | string output = cg.Generate(); | 1358 | string output = cg.Convert(input); |
1359 | Assert.AreEqual(expected, output); | 1359 | Assert.AreEqual(expected, output); |
1360 | } | 1360 | } |
1361 | 1361 | ||
@@ -1373,8 +1373,8 @@ default | |||
1373 | "; | 1373 | "; |
1374 | try | 1374 | try |
1375 | { | 1375 | { |
1376 | CSCodeGenerator cg = new CSCodeGenerator(input); | 1376 | CSCodeGenerator cg = new CSCodeGenerator(); |
1377 | cg.Generate(); | 1377 | cg.Convert(input); |
1378 | } | 1378 | } |
1379 | catch (Tools.CSToolsException e) | 1379 | catch (Tools.CSToolsException e) |
1380 | { | 1380 | { |