79 references to VerifyErrorCode
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (79)
LexicalAndXml\PreprocessorTests.cs (79)
494VerifyErrorCode(node, (int)ErrorCode.ERR_PPDirectiveExpected); 505VerifyErrorCode(node, (int)ErrorCode.ERR_PPDirectiveExpected); 712VerifyErrorCode(node, (int)ErrorCode.ERR_EndOfPPLineExpected); 1463VerifyErrorCode(node, (int)ErrorCode.ERR_EndifDirectiveExpected); 1478VerifyErrorCode(node, (int)ErrorCode.ERR_EndifDirectiveExpected); 1491VerifyErrorCode(node, (int)ErrorCode.ERR_EndifDirectiveExpected); 1504VerifyErrorCode(node, (int)ErrorCode.ERR_EndifDirectiveExpected); 1520VerifyErrorCode(node, (int)ErrorCode.ERR_InvalidPreprocExpr); 1537VerifyErrorCode(node, (int)ErrorCode.ERR_CloseParenExpected); 1553VerifyErrorCode(node, (int)ErrorCode.ERR_CloseParenExpected); 1572VerifyErrorCode(node, (int)ErrorCode.ERR_EndifDirectiveExpected); 1593VerifyErrorCode(node, (int)ErrorCode.ERR_EndifDirectiveExpected); 1614VerifyErrorCode(node, (int)ErrorCode.ERR_EndifDirectiveExpected); 1628VerifyErrorCode(node, (int)ErrorCode.ERR_UnexpectedDirective); 1639VerifyErrorCode(node, (int)ErrorCode.ERR_UnexpectedDirective); 1651VerifyErrorCode(node, (int)ErrorCode.ERR_UnexpectedDirective); 1664VerifyErrorCode(node, (int)ErrorCode.ERR_UnexpectedDirective); 1809VerifyErrorCode(node, (int)ErrorCode.ERR_InvalidPreprocExpr, (int)ErrorCode.ERR_InvalidPreprocExpr); 1960VerifyErrorCode(node, (int)ErrorCode.ERR_EndRegionDirectiveExpected); 1978VerifyErrorCode(node, (int)ErrorCode.ERR_EndRegionDirectiveExpected); 1993VerifyErrorCode(node, (int)ErrorCode.ERR_EndRegionDirectiveExpected); 2008VerifyErrorCode(node, (int)ErrorCode.ERR_EndRegionDirectiveExpected, (int)ErrorCode.ERR_EndRegionDirectiveExpected); 2027VerifyErrorCode(node, (int)ErrorCode.ERR_EndRegionDirectiveExpected, (int)ErrorCode.ERR_EndifDirectiveExpected); 2046VerifyErrorCode(node, (int)ErrorCode.ERR_EndRegionDirectiveExpected, (int)ErrorCode.ERR_EndRegionDirectiveExpected); 2065VerifyErrorCode(node, (int)ErrorCode.ERR_EndRegionDirectiveExpected, (int)ErrorCode.ERR_EndifDirectiveExpected); 2147VerifyErrorCode(node, (int)ErrorCode.ERR_SemicolonExpected); // CS1003 (Extra), CS1002 2415VerifyErrorCode(node, (int)ErrorCode.ERR_PPDefFollowsToken); // CS1032 2428VerifyErrorCode(node, (int)ErrorCode.ERR_BadDirectivePlacement); // CS1040 2519VerifyErrorCode(node, (int)ErrorCode.ERR_IdentifierExpected); // CS1001 2532VerifyErrorCode(node, (int)ErrorCode.ERR_IdentifierExpected); // CS1001 2545VerifyErrorCode(node, (int)ErrorCode.ERR_EndOfPPLineExpected); 2576VerifyErrorCode(node, (int)ErrorCode.ERR_PPDefFollowsToken); 2589VerifyErrorCode(node, (int)ErrorCode.ERR_BadDirectivePlacement); 2797VerifyErrorCode(node, (int)ErrorCode.ERR_IdentifierExpected); 2808VerifyErrorCode(node, (int)ErrorCode.ERR_IdentifierExpected); 2819VerifyErrorCode(node, (int)ErrorCode.ERR_EndOfPPLineExpected); 2832VerifyErrorCode(node, (int)ErrorCode.ERR_EndOfPPLineExpected); 2843VerifyErrorCode(node, (int)ErrorCode.ERR_IdentifierExpected); 2926VerifyErrorCode(node, 3089VerifyErrorCode(node, 3379VerifyErrorCode(node, (int)ErrorCode.ERR_EndOfPPLineExpected); 3410VerifyErrorCode(node, (int)ErrorCode.ERR_EndOfPPLineExpected); 3431VerifyErrorCode(node, (int)ErrorCode.ERR_InvalidLineNumber); 3442VerifyErrorCode(node, (int)ErrorCode.ERR_InvalidLineNumber); 3453VerifyErrorCode(node, (int)ErrorCode.ERR_InvalidLineNumber); 3464VerifyErrorCode(node, (int)ErrorCode.WRN_TooManyLinesForDebugger); 3475VerifyErrorCode(node, (int)ErrorCode.ERR_InvalidLineNumber); 3485VerifyErrorCode(node, (int)ErrorCode.ERR_InvalidLineNumber); 3495VerifyErrorCode(node, (int)ErrorCode.ERR_InvalidLineNumber); 3505VerifyErrorCode(node, (int)ErrorCode.ERR_MissingPPFile); 3526VerifyErrorCode(node, (int)ErrorCode.ERR_EndOfPPLineExpected); 3554VerifyErrorCode(tree.GetCompilationUnitRoot(), (int)ErrorCode.ERR_InvalidMemberDecl); // CS1519 - parser gives Two 3576VerifyErrorCode(node, (int)ErrorCode.ERR_IntOverflow); // CS1021, CS1576 (not in parser) ErrorCode.ERR_InvalidLineNumber 3592VerifyErrorCode(node, (int)ErrorCode.ERR_InvalidLineNumber); // CS1021, CS1576 (not in parser) ErrorCode.ERR_InvalidLineNumber 3609VerifyErrorCode(node, (int)ErrorCode.ERR_MissingPPFile); 3626VerifyErrorCode(node); //zero width space is still a space 3689VerifyErrorCode(node, (int)ErrorCode.WRN_IllegalPPWarning); // CS1634 4096VerifyErrorCode(node, (int)ErrorCode.WRN_IllegalPragma); // CS1633 4112VerifyErrorCode(node, (int)ErrorCode.WRN_IllegalPragma); 4149VerifyErrorCode(node, (int)ErrorCode.WRN_IllegalPPChecksum); // CS1695 4166VerifyErrorCode(node, (int)ErrorCode.WRN_IllegalPPChecksum); 4181VerifyErrorCode(node, (int)ErrorCode.WRN_IllegalPPChecksum); 4218VerifyErrorCode(node, (int)ErrorCode.WRN_IllegalPPChecksum); 4238VerifyErrorCode(node, (int)ErrorCode.WRN_EndOfPPLineExpected); // CS1696 4258VerifyErrorCode(node, (int)ErrorCode.WRN_IllegalPPChecksum); 4283VerifyErrorCode(node, (int)ErrorCode.WRN_IllegalPPChecksum); 4332VerifyErrorCode(node, (int)ErrorCode.ERR_ExpectedPPFile); 4343VerifyErrorCode(node, (int)ErrorCode.ERR_ExpectedPPFile); 4354VerifyErrorCode(node, (int)ErrorCode.ERR_ExpectedPPFile); 4365VerifyErrorCode(node, (int)ErrorCode.ERR_ExpectedPPFile); 4419VerifyErrorCode(node, (int)ErrorCode.ERR_ExpectedPPFile); 4434VerifyErrorCode(node, (int)ErrorCode.ERR_EndOfPPLineExpected); 4479VerifyErrorCode(node); // no errors 4490VerifyErrorCode(node); // no errors 4501VerifyErrorCode(node); // no errors 4512VerifyErrorCode(node); // no errors 4523VerifyErrorCode(node); // no errors 4534VerifyErrorCode(node); // no errors 4564VerifyErrorCode(root); // no errors