Wiki
Show
Ignore:
Timestamp:
02/27/10 22:11:13 (2 years ago)
Author:
Chuck.Esterbrook
Message:

Code cleanup.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cobra/trunk/Source/BackEndClr/SharpGenerator.cobra

    r2291 r2294  
    5656                print 'using CobraLangInternal = Cobra.Lang[.embedRunTimeSuffix];' 
    5757                print '' 
    58                 print 'class RunTests {' 
     58                print 'class _GeneratedTestRunner {' 
    5959                print '' 
    6060                print ' public static void Main() {' 
    6161                print '     CobraLangInternal.CobraImp.ShowTestProgress = true;' 
    6262                if .hasExceptionReportOption 
    63                     print '     bool success = false;' 
    6463                    print '     try {' 
    6564                print '     CobraLangInternal.Test.ITestRunListener listener = new CobraLangInternal.Test.TextWriterListener(System.Console.Out);' 
    6665                print '     new CobraLangInternal.Test.TestRunner(listener).RunAllTests();' 
    6766                if .hasExceptionReportOption 
    68                     print '     success = true;' 
    6967                    print '     } catch (System.Exception e) {' 
    7068                    print '         CobraLangInternal.CobraCore.HandleUnhandledException(e);' 
    7169                    print '     }' 
    72                     print '     if (success)' 
    73                 print '     CobraLangInternal.CobraImp.TestProgressWriter.WriteLine("\\nSuccess!  All tests pass.\\n");' 
    7470                print ' }' 
    7571                print '}' 
    76         .mainMethodTypeName = 'RunTests' 
     72        .mainMethodTypeName = '_GeneratedTestRunner' 
    7773        _modules.add(SharpModule(fileName, _verbosity)) 
    7874