489 references to Errors
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (489)
IncrementalParsing\IncrementalParsingTests.cs (35)
54Assert.Equal(0, oldTree.GetCompilationUnitRoot().Errors().Length); 55Assert.Equal(0, newTree.GetCompilationUnitRoot().Errors().Length); 102Assert.Equal(0, oldTree.GetCompilationUnitRoot().Errors().Length); 103Assert.Equal(0, newTree.GetCompilationUnitRoot().Errors().Length); 146Assert.Equal(0, oldTree.GetCompilationUnitRoot().Errors().Length); 147Assert.Equal(0, newTree.GetCompilationUnitRoot().Errors().Length); 162Assert.Equal(0, oldTree.GetCompilationUnitRoot().Errors().Length); 163Assert.Equal(0, newTree.GetCompilationUnitRoot().Errors().Length); 178Assert.Equal(0, oldTree.GetCompilationUnitRoot().Errors().Length); 179Assert.Equal(0, newTree.GetCompilationUnitRoot().Errors().Length); 196Assert.Equal(0, oldTree.GetCompilationUnitRoot().Errors().Length); 197Assert.Equal(0, newTree.GetCompilationUnitRoot().Errors().Length); 214Assert.Equal(0, oldTree.GetCompilationUnitRoot().Errors().Length); 215Assert.Equal(0, newTree.GetCompilationUnitRoot().Errors().Length); 230Assert.Equal(0, oldTree.GetCompilationUnitRoot().Errors().Length); 231Assert.Equal(0, newTree.GetCompilationUnitRoot().Errors().Length); 251Assert.Equal(0, oldTree.GetCompilationUnitRoot().Errors().Length); 252Assert.Equal(0, newTree.GetCompilationUnitRoot().Errors().Length); 273Assert.Equal(0, oldTree.GetCompilationUnitRoot().Errors().Length); 274Assert.Equal(0, newTree.GetCompilationUnitRoot().Errors().Length); 297Assert.Equal(0, oldTree.GetCompilationUnitRoot().Errors().Length); 298Assert.Equal(0, newTree.GetCompilationUnitRoot().Errors().Length); 319Assert.Equal(0, oldTree.GetCompilationUnitRoot().Errors().Length); 320Assert.Equal(0, newTree.GetCompilationUnitRoot().Errors().Length); 338Assert.Equal(0, oldTree.GetCompilationUnitRoot().Errors().Length); 339Assert.Equal(0, newTree.GetCompilationUnitRoot().Errors().Length); 361Assert.Equal(0, oldTree.GetCompilationUnitRoot().Errors().Length); 370var errors = newTree.GetCompilationUnitRoot().Errors(); 403var errors = oldTree.GetCompilationUnitRoot().Errors(); 414errors = newTree.GetCompilationUnitRoot().Errors(); 1621Assert.Equal(0, syntaxTree.GetCompilationUnitRoot().Errors().Length); 1641Assert.Equal(0, syntaxTree.GetCompilationUnitRoot().Errors().Length); 1660Assert.Equal(0, syntaxTree.GetCompilationUnitRoot().Errors().Length); 3551Assert.Equal(0, oldTree.GetCompilationUnitRoot().Errors().Length); 3552Assert.Equal(0, newTree.GetCompilationUnitRoot().Errors().Length);
LexicalAndXml\XmlDocCommentTests.cs (65)
79Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 99Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 131Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 147Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 169Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 193Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 216Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 239Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 262Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 289Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 317Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 341Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 366Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 392Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 419Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 446Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 474Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 503Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 533Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 562Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 592Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 623Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 646Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 668Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 690Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 712Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 754Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 788Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 821Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 852Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 983Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 1014Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 1119Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 1152Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 1264Assert.Equal(1, tree.GetCompilationUnitRoot().Errors().Length); 1309Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 1333Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 1358Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 1382Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 1407Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 1431Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 1456Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 1480Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 1560Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 1588Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 1642Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 1709Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 1748Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 1829Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 1864Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 1899Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 1934Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 1969Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 2006Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 2044Assert.Equal(1, tree.GetCompilationUnitRoot().Errors().Length); // 4 errors because of the incomplete class decl 2080Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 2111Assert.Equal(1, tree.GetCompilationUnitRoot().Errors().Length); // error because of the incomplete class decl 2144Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); // 4 errors because of the incomplete class decl 2174Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); // 4 errors because of the incomplete class decl 2205Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 2242Assert.Equal(1, tree.GetCompilationUnitRoot().Errors().Length); 2255Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 2283Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 2325Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length); 2677Assert.Equal(0, tree.GetCompilationUnitRoot().Errors().Length);
Parsing\DeclarationParsingTests.cs (155)
37Assert.Equal(0, file.Errors().Length); 60Assert.Equal(0, file.Errors().Length); 82Assert.Equal(0, file.Errors().Length); 105var errors = file.Errors(); 120var errors = file.Errors(); 135var errors = file.Errors(); 149Assert.Equal(0, file.Errors().Length); 171Assert.Equal(0, file.Errors().Length); 193Assert.Equal(0, file.Errors().Length); 215Assert.Equal(0, file.Errors().Length); 239Assert.Equal(0, file.Errors().Length); 263Assert.Equal(0, file.Errors().Length); 289Assert.Equal(0, file.Errors().Length); 318Assert.Equal(0, file.Errors().Length); 347Assert.Equal(0, file.Errors().Length); 374Assert.Equal(0, file.Errors().Length); 402Assert.Equal(0, file.Errors().Length); 432Assert.Equal(0, file.Errors().Length); 463Assert.Equal(0, file.Errors().Length); 499Assert.Equal(0, file.Errors().Length); 531Assert.Equal(0, file.Errors().Length); 568Assert.Equal(0, file.Errors().Length); 590Assert.Equal(0, file.Errors().Length); 611Assert.Equal(0, file.Errors().Length); 633Assert.Equal(0, file.Errors().Length); 656Assert.Equal(0, file.Errors().Length); 678Assert.Equal(0, file.Errors().Length); 701Assert.Equal(0, file.Errors().Length); 723Assert.Equal(1, file.Errors().Length); 747Assert.Equal(0, file.Errors().Length); 778Assert.Equal(0, file.Errors().Length); 804Assert.Equal(0, file.Errors().Length); 831Assert.Equal(0, file.Errors().Length); 858Assert.Equal(0, file.Errors().Length); 885Assert.Equal(0, file.Errors().Length); 912Assert.Equal(0, file.Errors().Length); 939Assert.Equal(0, file.Errors().Length); 966Assert.Equal(0, file.Errors().Length); 993Assert.Equal(0, file.Errors().Length); 1021Assert.Equal(0, file.Errors().Length); 1048Assert.Equal(0, file.Errors().Length); 1079Assert.Equal(0, file.Errors().Length); 1111Assert.Equal(0, file.Errors().Length); 1152var errors = file.Errors(); 1214Assert.Equal(0, file.Errors().Length); 1258Assert.Equal(0, file.Errors().Length); 1299Assert.Equal(0, file.Errors().Length); 1340Assert.Equal(0, file.Errors().Length); 1396Assert.Equal(0, file.Errors().Length); 1451Assert.Equal(2, file.Errors().Length); 1497Assert.Equal(3, file.Errors().Length); 1541Assert.Equal(0, file.Errors().Length); 1601Assert.Equal(0, file.Errors().Length); 1626Assert.Equal(0, file.Errors().Length); 1656Assert.Equal(0, file.Errors().Length); 1688Assert.Equal(0, file.Errors().Length); 1713Assert.Equal(0, file.Errors().Length); 1753Assert.Equal(0, file.Errors().Length); 1794Assert.Equal(0, file.Errors().Length); 1835Assert.Equal(0, file.Errors().Length); 1877Assert.Equal(0, file.Errors().Length); 1919Assert.Equal(0, file.Errors().Length); 1960Assert.Equal(0, file.Errors().Length); 2001Assert.Equal(0, file.Errors().Length); 2028Assert.Equal(0, file.Errors().Length); 2056Assert.Equal(0, file.Errors().Length); 2103Assert.Equal(0, file.Errors().Length); 2149Assert.Equal(0, file.Errors().Length); 2184Assert.Equal(0, file.Errors().Length); 2219Assert.Equal(0, file.Errors().Length); 2261Assert.Equal(0, file.Errors().Length); 2297Assert.Equal(0, file.Errors().Length); 2333Assert.Equal(0, file.Errors().Length); 2369var errors = file.Errors(); 2403Assert.Equal(0, file.Errors().Length); 2439Assert.Equal(0, file.Errors().Length); 2481Assert.Equal(0, file.Errors().Length); 2527Assert.Equal(0, file.Errors().Length); 2573Assert.Equal(0, file.Errors().Length); 2618Assert.Equal(1, file.Errors().Length); 2648Assert.Equal(1, file.Errors().Length); 2676Assert.Equal(0, file.Errors().Length); 2744Assert.Equal(0, file.Errors().Length); 2791Assert.Equal(0, file.Errors().Length); 2838Assert.Equal(0, file.Errors().Length); 2888Assert.Equal(0, file.Errors().Length); 2929Assert.Equal(0, file.Errors().Length); 2975Assert.Equal(3, file.Errors().Length); 2976Assert.Equal(ErrorCode.ERR_SemicolonExpected, (ErrorCode)file.Errors()[0].Code); 2977Assert.Equal(ErrorCode.ERR_InvalidMemberDecl, (ErrorCode)file.Errors()[1].Code); 2978Assert.Equal(ErrorCode.ERR_InvalidMemberDecl, (ErrorCode)file.Errors()[2].Code); 2990Assert.Equal(0, file.Errors().Length); 3042Assert.Equal(0, file.Errors().Length); 3103Assert.Equal(0, file.Errors().Length); 3168Assert.Equal(0, file.Errors().Length); 3242Assert.Equal(0, file.Errors().Length); 3307Assert.Equal(0, file.Errors().Length); 3359Assert.Equal(0, file.Errors().Length); 3405Assert.Equal(0, file.Errors().Length); 3474Assert.Equal(0, file.Errors().Length); 3486Assert.Equal(0, file.Errors().Length); 3521Assert.Equal(0, file.Errors().Length); 3568Assert.Equal(0, file.Errors().Length); 3605Assert.Equal(0, file.Errors().Length); 3665Assert.Equal(0, file.Errors().Length); 3705Assert.Equal(0, file.Errors().Length); 3759Assert.Equal(0, file.Errors().Length); 3815Assert.Equal(0, file.Errors().Length); 3860Assert.Equal(0, file.Errors().Length); 3904Assert.Equal(0, file.Errors().Length); 3949Assert.Equal(0, file.Errors().Length); 4003Assert.Equal(0, file.Errors().Length); 4066Assert.Equal(0, file.Errors().Length); 4112Assert.Equal(0, file.Errors().Length); 4166Assert.Equal(0, file.Errors().Length); 4221Assert.Equal(0, file.Errors().Length); 4294Assert.Equal(0, file.Errors().Length); 4348Assert.Equal(0, file.Errors().Length); 4402Assert.Equal(0, file.Errors().Length); 4456Assert.Equal(0, file.Errors().Length); 4465Assert.Equal(0, ps.Errors().Length); 4486Assert.Equal(0, file.Errors().Length); 4542Assert.Equal(0, file.Errors().Length); 4598Assert.Equal(0, file.Errors().Length); 4682Assert.Equal(0, file.Errors().Length); 4738Assert.Equal(0, file.Errors().Length); 4792Assert.Equal(0, file.Errors().Length); 4875Assert.Equal(0, file.Errors().Length); 4932Assert.Equal(0, file.Errors().Length); 4999Assert.Equal(0, file.Errors().Length); 5067Assert.Equal(0, file.Errors().Length); 5134Assert.Equal(0, file.Errors().Length); 5210Assert.Equal(0, file.Errors().Length); 5278Assert.Equal(0, file.Errors().Length); 5358Assert.Equal(0, file.Errors().Length); 5472Assert.Equal(0, file.Errors().Length); 5535Assert.Equal(0, file.Errors().Length); 5583Assert.Equal(0, file.Errors().Length); 5630Assert.Equal(0, file.Errors().Length); 5634Assert.Equal(0, ns.Errors().Length); 5642Assert.Equal(0, file.Errors().Length); 5646Assert.Equal(0, ns.Errors().Length); 5654Assert.Equal(0, file.Errors().Length); 5658Assert.Equal(0, ns.Errors().Length); 5706Assert.Equal(1, file.Errors().Length); 5707Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.Errors()[0].Code); 5778Assert.Equal(0, file.Errors().Length); 5796Assert.Equal(0, file.Errors().Length); 5881Assert.Equal(0, file.Errors().Length); 5936Assert.Equal(0, file.Errors().Length); 5949Assert.Equal(0, file.Errors().Length); 5964Assert.Equal(0, file.Errors().Length); 5990Assert.Equal(0, file.Errors().Length); 6366Assert.Equal(0, file.Errors().Length); 6387Assert.Equal(0, file.Errors().Length);
Parsing\ExpressionParsingTests.cs (77)
40Assert.Equal(1, expr.Errors().Length); 41Assert.Equal((int)ErrorCode.ERR_ExpressionExpected, expr.Errors()[0].Code); 435Assert.Equal(0, expr.Errors().Length); 447Assert.Equal(0, expr.Errors().Length); 458Assert.Equal(0, expr.Errors().Length); 481Assert.Equal(0, expr.Errors().Length); 513Assert.Equal(0, expr.Errors().Length); 528Assert.Equal(0, expr.Errors().Length); 543Assert.Equal(0, expr.Errors().Length); 557Assert.Equal(0, expr.Errors().Length); 572Assert.Equal(0, expr.Errors().Length); 603Assert.Equal(0, expr.Errors().Length); 629Assert.Equal(0, expr.Errors().Length); 675Assert.Equal(0, expr.Errors().Length); 710Assert.Equal(0, expr.Errors().Length); 735Assert.Equal(0, expr.Errors().Length); 768Assert.Equal(0, expr.Errors().Length); 819Assert.Equal(0, expr.Errors().Length); 882Assert.Equal(0, expr.Errors().Length); 903Assert.Equal(0, expr.Errors().Length); 933Assert.Equal(0, expr.Errors().Length); 954Assert.Equal(0, expr.Errors().Length); 975Assert.Equal(0, expr.Errors().Length); 1000Assert.Equal(0, expr.Errors().Length); 1025Assert.Equal(0, expr.Errors().Length); 1050Assert.Equal(0, expr.Errors().Length); 1071Assert.Equal(0, expr.Errors().Length); 1096Assert.Equal(0, expr.Errors().Length); 1121Assert.Equal(0, expr.Errors().Length); 1142Assert.Equal(0, expr.Errors().Length); 1164Assert.Equal(0, expr.Errors().Length); 1187Assert.Equal(0, expr.Errors().Length); 1210Assert.Equal(0, expr.Errors().Length); 1238Assert.Equal(0, expr.Errors().Length); 1261Assert.Equal(0, expr.Errors().Length); 1285Assert.Equal(0, expr.Errors().Length); 1311Assert.Equal(0, expr.Errors().Length); 1335Assert.Equal(0, expr.Errors().Length); 1363Assert.Equal(0, expr.Errors().Length); 1841Assert.Equal(0, expr.Errors().Length); 1863Assert.Equal(0, expr.Errors().Length); 1887Assert.Equal(0, expr.Errors().Length); 1909Assert.Equal(0, expr.Errors().Length); 1929Assert.Equal(0, expr.Errors().Length); 1950Assert.Equal(0, expr.Errors().Length); 1981Assert.Equal(0, expr.Errors().Length); 2011Assert.Equal(0, expr.Errors().Length); 2036Assert.Equal(0, expr.Errors().Length); 2054Assert.Equal(0, expr.Errors().Length); 2072Assert.Equal(0, expr.Errors().Length); 2092Assert.Equal(0, expr.Errors().Length); 2112Assert.Equal(0, expr.Errors().Length); 2132Assert.Equal(0, expr.Errors().Length); 2154Assert.Equal(0, expr.Errors().Length); 2178Assert.Equal(0, expr.Errors().Length); 2205Assert.Equal(0, expr.Errors().Length); 2230Assert.Equal(0, expr.Errors().Length); 2257Assert.Equal(0, expr.Errors().Length); 2277Assert.Equal(0, expr.Errors().Length); 2298Assert.Equal(0, expr.Errors().Length); 2331Assert.Equal(0, expr.Errors().Length); 2364Assert.Equal(0, expr.Errors().Length); 2415Assert.Equal(0, expr.Errors().Length); 2455Assert.Equal(0, expr.Errors().Length); 2498Assert.Equal(0, expr.Errors().Length); 2543Assert.Equal(0, expr.Errors().Length); 2588Assert.Equal(0, expr.Errors().Length); 2637Assert.Equal(0, expr.Errors().Length); 2685Assert.Equal(0, expr.Errors().Length); 2733Assert.Equal(0, expr.Errors().Length); 2772Assert.Equal(0, expr.Errors().Length); 2825Assert.Equal(0, expr.Errors().Length); 2881Assert.Equal(0, expr.Errors().Length); 2936Assert.Equal(0, expr.Errors().Length); 2993Assert.Equal(0, expr.Errors().Length); 3044Assert.NotEqual(0, expr.Errors().Length); 4766Assert.Equal(0, expr.Errors().Length);
Parsing\NameParsingTests.cs (50)
38Assert.Equal(0, name.Errors().Length); 51Assert.Equal(1, name.Errors().Length); 64Assert.Equal(1, name.Errors().Length); 65Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, name.Errors()[0].Code); 78Assert.Equal(2, name.Errors().Length); 79Assert.Equal((int)ErrorCode.ERR_UnexpectedToken, name.Errors()[0].Code); 80Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, name.Errors()[1].Code); 93Assert.Equal(2, name.Errors().Length); 94Assert.Equal((int)ErrorCode.ERR_UnexpectedToken, name.Errors()[0].Code); 95Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, name.Errors()[1].Code); 108Assert.Equal(2, name.Errors().Length); 109Assert.Equal((int)ErrorCode.ERR_UnexpectedToken, name.Errors()[0].Code); 110Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, name.Errors()[1].Code); 123Assert.Equal(0, name.Errors().Length); 138Assert.Equal(0, name.Errors().Length); 151Assert.Equal(0, name.Errors().Length); 164Assert.Equal(0, name.Errors().Length); 170Assert.Equal(0, name.Errors().Length); 193Assert.Equal(1, name.Errors().Length); 199Assert.Equal(0, name.Errors().Length); 211Assert.Equal(0, name.Errors().Length); 227Assert.Equal(0, name.Errors().Length); 243Assert.Equal(0, name.Errors().Length); 303Assert.Equal(0, name.Errors().Length); 320Assert.Equal(0, name.Errors().Length); 338Assert.Equal(0, name.Errors().Length); 352Assert.Equal(0, name.Errors().Length); 366Assert.Equal(0, name.Errors().Length); 383Assert.Equal(0, name.Errors().Length); 444Assert.Equal(0, name.Errors().Length); 495Assert.Equal(0, name.Errors().Length); 510Assert.Equal(0, name.Errors().Length); 536Assert.Equal(0, name.Errors().Length); 558Assert.Equal(0, name.Errors().Length); 580Assert.Equal(0, name.Errors().Length); 611Assert.Equal(0, name.Errors().Length); 633Assert.Equal(1, arg.Errors().Length); 634Assert.Equal((int)ErrorCode.ERR_IllegalVarianceSyntax, arg.Errors()[0].Code); 658Assert.Equal(1, arg.Errors().Length); 659Assert.Equal((int)ErrorCode.ERR_TypeExpected, arg.Errors()[0].Code); 684Assert.Equal(1, arg.Errors().Length); 685Assert.Equal((int)ErrorCode.ERR_TypeExpected, arg.Errors()[0].Code); 711Assert.Equal(1, arg.Errors().Length); 712Assert.Equal((int)ErrorCode.ERR_TypeExpected, arg.Errors()[0].Code); 717Assert.Equal(0, arg2.Errors().Length); 742Assert.Equal(1, arg.Errors().Length); 743Assert.Equal((int)ErrorCode.ERR_TypeExpected, arg.Errors()[0].Code); 767Assert.Equal(2, arg.Errors().Length); 768Assert.Equal((int)ErrorCode.ERR_TypeExpected, arg.Errors()[0].Code); 769Assert.Equal((int)ErrorCode.ERR_IllegalVarianceSyntax, arg.Errors()[1].Code);
Parsing\ParsingErrorRecoveryTests.cs (8)
6932Assert.Equal(3, subitem1.Errors().Length); 6933Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, subitem1.Errors()[0].Code); 6934Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, subitem1.Errors()[1].Code); 6935Assert.Equal((int)ErrorCode.ERR_RbraceExpected, subitem1.Errors()[2].Code); 6943Assert.Equal(3, subitem2.Errors().Length); 6944Assert.Equal((int)ErrorCode.ERR_LbraceExpected, subitem2.Errors()[0].Code); 6945Assert.Equal((int)ErrorCode.ERR_RbraceExpected, subitem2.Errors()[1].Code); 6946Assert.Equal((int)ErrorCode.ERR_InvalidMemberDecl, subitem2.Errors()[2].Code);
Parsing\StatementParsingTests.cs (98)
61Assert.Equal(0, statement.Errors().Length); 81Assert.Equal(0, statement.Errors().Length); 101Assert.Equal(0, statement.Errors().Length); 120Assert.Equal(0, statement.Errors().Length); 140Assert.Equal(0, statement.Errors().Length); 159Assert.Equal(0, statement.Errors().Length); 190Assert.Equal(0, statement.Errors().Length); 218Assert.Equal(0, statement.Errors().Length); 248Assert.Equal(0, statement.Errors().Length); 282Assert.Equal(0, statement.Errors().Length); 323Assert.Equal(0, statement.Errors().Length); 351Assert.Equal(0, statement.Errors().Length); 377Assert.Equal(0, statement.Errors().Length); 403Assert.Equal(0, statement.Errors().Length); 429Assert.Equal(0, statement.Errors().Length); 455Assert.Equal(0, statement.Errors().Length); 481Assert.Equal(0, statement.Errors().Length); 507Assert.Equal(0, statement.Errors().Length); 542Assert.Equal(0, statement.Errors().Length); 572Assert.Equal(0, statement.Errors().Length); 617Assert.Equal(0, statement.Errors().Length); 648Assert.Equal(0, statement.Errors().Length); 679Assert.Equal(1, statement.Errors().Length); 680Assert.Equal((int)ErrorCode.ERR_BadMemberFlag, statement.Errors()[0].Code); 711Assert.Equal(1, statement.Errors().Length); 712Assert.Equal((int)ErrorCode.ERR_BadMemberFlag, statement.Errors()[0].Code); 743Assert.Equal(1, statement.Errors().Length); 744Assert.Equal((int)ErrorCode.ERR_BadMemberFlag, statement.Errors()[0].Code); 775Assert.Equal(0, statement.Errors().Length); 801Assert.Equal(0, statement.Errors().Length); 832Assert.Equal(0, statement.Errors().Length); 873Assert.Equal(0, statement.Errors().Length); 900Assert.Equal(0, statement.Errors().Length); 930Assert.Equal(0, statement.Errors().Length); 958Assert.Equal(0, statement.Errors().Length); 974Assert.Equal(0, statement.Errors().Length); 995Assert.Equal(0, statement.Errors().Length); 1014Assert.Equal(0, statement.Errors().Length); 1033Assert.Equal(0, statement.Errors().Length); 1055Assert.Equal(0, statement.Errors().Length); 1079Assert.Equal(0, statement.Errors().Length); 1102Assert.Equal(0, statement.Errors().Length); 1122Assert.Equal(0, statement.Errors().Length); 1143Assert.Equal(0, statement.Errors().Length); 1167Assert.Equal(0, statement.Errors().Length); 1190Assert.Equal(0, statement.Errors().Length); 1210Assert.Equal(0, statement.Errors().Length); 1231Assert.Equal(0, statement.Errors().Length); 1261Assert.Equal(0, statement.Errors().Length); 1290Assert.Equal(0, statement.Errors().Length); 1314Assert.Equal(0, statement.Errors().Length); 1357Assert.Equal(0, statement.Errors().Length); 1380Assert.Equal(0, statement.Errors().Length); 1425Assert.Equal(0, statement.Errors().Length); 1442Assert.Equal(0, statement.Errors().Length); 1459Assert.Equal(0, statement.Errors().Length); 1476Assert.Equal(0, statement.Errors().Length); 1498Assert.Equal(0, statement.Errors().Length); 1523Assert.Equal(0, statement.Errors().Length); 1549Assert.Equal(0, statement.Errors().Length); 1586Assert.Equal(0, statement.Errors().Length); 1625Assert.Equal(0, statement.Errors().Length); 1734Assert.Equal(0, statement.Errors().Length); 1763Assert.Equal(0, statement.Errors().Length); 1793Assert.Equal(0, statement.Errors().Length); 1823Assert.Equal(0, statement.Errors().Length); 1853Assert.Equal(0, statement.Errors().Length); 1884Assert.Equal(0, statement.Errors().Length); 1927Assert.Equal(0, statement.Errors().Length); 1956Assert.Equal(1, statement.Errors().Length); 1989Assert.Equal(0, statement.Errors().Length); 2020Assert.Equal(0, statement.Errors().Length); 2043Assert.Equal(0, statement.Errors().Length); 2069Assert.Equal(0, statement.Errors().Length); 2103Assert.Equal(0, statement.Errors().Length); 2124Assert.Equal(0, statement.Errors().Length); 2149Assert.Equal(0, statement.Errors().Length); 2184Assert.Equal(0, statement.Errors().Length); 2231Assert.Equal(0, statement.Errors().Length); 2264Assert.Equal(0, statement.Errors().Length); 2306Assert.Equal(0, statement.Errors().Length); 2342Assert.Equal(0, statement.Errors().Length); 2364Assert.Equal(0, statement.Errors().Length); 2398Assert.Equal(0, statement.Errors().Length); 2457Assert.Equal(0, statement.Errors().Length); 2493Assert.Equal(0, statement.Errors().Length); 2625Assert.Equal(0, statement.Errors().Length); 2797Assert.Equal(0, statement.Errors().Length); 2841Assert.Equal(0, statement.Errors().Length); 2922Assert.Equal(0, statement.Errors().Length); 2944Assert.Equal(0, statement.Errors().Length); 3005Assert.Equal(0, statement.Errors().Length); 3027Assert.Equal(0, statement.Errors().Length); 3077Assert.Equal(0, statement.Errors().Length); 3099Assert.Equal(0, statement.Errors().Length); 3375Assert.Equal(0, statement.Errors().Length); 3555Assert.Equal(1, statement.Errors().Length); 3556Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, statement.Errors()[0].Code);
Syntax\SyntaxFactoryTests.cs (1)
63Assert.Equal(0, n.Errors().Length);