Changeset 2294 for cobra/trunk/Source/BackEndClr/SharpGenerator.cobra
- Timestamp:
- 02/27/10 22:11:13 (2 years ago)
- Files:
-
- 1 modified
-
cobra/trunk/Source/BackEndClr/SharpGenerator.cobra (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cobra/trunk/Source/BackEndClr/SharpGenerator.cobra
r2291 r2294 56 56 print 'using CobraLangInternal = Cobra.Lang[.embedRunTimeSuffix];' 57 57 print '' 58 print 'class RunTests{'58 print 'class _GeneratedTestRunner {' 59 59 print '' 60 60 print ' public static void Main() {' 61 61 print ' CobraLangInternal.CobraImp.ShowTestProgress = true;' 62 62 if .hasExceptionReportOption 63 print ' bool success = false;'64 63 print ' try {' 65 64 print ' CobraLangInternal.Test.ITestRunListener listener = new CobraLangInternal.Test.TextWriterListener(System.Console.Out);' 66 65 print ' new CobraLangInternal.Test.TestRunner(listener).RunAllTests();' 67 66 if .hasExceptionReportOption 68 print ' success = true;'69 67 print ' } catch (System.Exception e) {' 70 68 print ' CobraLangInternal.CobraCore.HandleUnhandledException(e);' 71 69 print ' }' 72 print ' if (success)'73 print ' CobraLangInternal.CobraImp.TestProgressWriter.WriteLine("\\nSuccess! All tests pass.\\n");'74 70 print ' }' 75 71 print '}' 76 .mainMethodTypeName = ' RunTests'72 .mainMethodTypeName = '_GeneratedTestRunner' 77 73 _modules.add(SharpModule(fileName, _verbosity)) 78 74



