error = CSharpCompiler.parseLine( "error CS2008: No files to compile were specified" );
error = DefaultCSharpCompilerParser.parseLine( "error CS2008: No files to compile were specified" );
    public void testParser()        throws IOException    {        CompilerError error;        // ----------------------------------------------------------------------        // Test a few concrete lines        // ----------------------------------------------------------------------        error = CSharpCompiler.parseLine( "error CS2008: No files to compile were specified" );        assertNotNull( error );        assertEquals( "CS2008: No files to compile were specified", error.getMessage() );        error = CSharpCompiler.parseLine( "Compilation failed: 1 error(s), 0 warnings" );        assertNull( error );        error = CSharpCompiler.parseLine( "Compilation succeeded - 2 warning(s)" );        assertNull( error );        error = CSharpCompiler.parseLine( "/home/trygvis/dev/com.myrealbox/trunk/mcs/nunit20/core/./TestRunnerThread.cs(29) error CS0246: Cannot find type 'NameValueCollection'" );        assertNotNull( error );        assertEquals( 29, error.getStartLine() );        assertEquals( -1, error.getStartColumn() );        assertEquals( 29, error.getEndLine() );        assertEquals( -1, error.getEndColumn() );        assertEquals( "CS0246: Cannot find type 'NameValueCollection'", error.getMessage() );        // ----------------------------------------------------------------------        //        // ----------------------------------------------------------------------        String input = "/home/trygvis/dev/com.myrealbox/trunk/mcs/nunit20/core/./TestRunnerThread.cs(5) error CS0234: The type or namespace name `Specialized' could not be found in namespace `System.Collections'\n" +                       "/home/trygvis/dev/com.myrealbox/trunk/mcs/nunit20/core/./TestRunnerThread.cs(29) error CS0246: Cannot find type 'NameValueCollection'\n" +                       "/home/trygvis/dev/com.myrealbox/trunk/mcs/nunit20/core/./Reflect.cs(4) error CS0234: The type or namespace name `Framework' could not be found in namespace `NUnit'\n" +                       "/home/trygvis/dev/com.myrealbox/trunk/mcs/nunit20/core/./Reflect.cs(123) error CS0246: Cannot find type 'TestFixtureAttribute'\n" +                       "/home/trygvis/dev/com.myrealbox/trunk/mcs/nunit20/core/./Reflect.cs(129) error CS0246: Cannot find type 'TestAttribute'\n" +                       "/home/trygvis/dev/com.myrealbox/trunk/mcs/nunit20/core/./Reflect.cs(135) error CS0246: Cannot find type 'IgnoreAttribute'\n" +                       "/home/trygvis/dev/com.myrealbox/trunk/mcs/nunit20/core/./Reflect.cs(141) error CS0246: Cannot find type 'ExpectedExceptionAttribute'\n" +                       "/home/trygvis/dev/com.myrealbox/trunk/mcs/nunit20/core/./WarningSuite.cs(49) error CS0506: `NUnit.Core.WarningSuite.Add': cannot override inherited member `TestSuite.Add' because it is not virtual, abstract or override\n" +                       "/home/trygvis/dev/com.myrealbox/trunk/mcs/nunit20/core/./WarningSuite.cs(49) error CS0507: `NUnit.Core.WarningSuite.Add': can't change the access modifiers when overriding inherited member `TestSuite.Add'\n" +                       "/home/trygvis/dev/com.myrealbox/trunk/mcs/nunit20/core/./WarningSuite.cs(56) error CS0115: 'NUnit.Core.WarningSuite.CreateNewSuite(System.Type)': no suitable methods found to override\n" +                       "/home/trygvis/dev/com.myrealbox/trunk/mcs/nunit20/core/./TestRunnerThread.cs(5) error CS0234: The type or namespace name `Specialized' could not be found in namespace `System.Collections'\n" +                       "/home/trygvis/dev/com.myrealbox/trunk/mcs/nunit20/core/./TestRunnerThread.cs(5) error CS0246: The namespace `System.Collections.Specialized' can not be found (missing assembly reference?)\n" +                       "/home/trygvis/dev/com.myrealbox/trunk/mcs/nunit20/core/./Reflect.cs(4) error CS0234: The type or namespace name `Framework' could not be found in namespace `NUnit'\n" +                       "/home/trygvis/dev/com.myrealbox/trunk/mcs/nunit20/core/./Reflect.cs(4) error CS0246: The namespace `NUnit.Framework' can not be found (missing assembly reference?)\n" +                       "Compilation failed: 14 error(s), 0 warnings";        List messages = CSharpCompiler.parseCompilerOutput( new BufferedReader( new StringReader( input ) ) );        assertNotNull( messages );        assertEquals( 14, messages.size() );    }