2 writes to CandidateReason
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
CompilationTestUtils.cs (2)
288summary.CandidateReason = symbolInfo.CandidateReason; 330summary.CandidateReason = symbolInfo.CandidateReason;
262 references to CandidateReason
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (36)
Semantics\ExpressionBodiedMemberTests.cs (5)
86Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 196Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 238Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 294Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 327Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason);
Semantics\FunctionPointerTests.cs (1)
3970Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason);
Semantics\InteractiveSemanticModelTests.cs (2)
189Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 243Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason);
Semantics\QueryTests.cs (1)
2400Assert.Equal(CandidateReason.None, symbolInfoForSelect.CandidateReason);
Semantics\ScriptSemanticsTests.cs (2)
250Assert.Equal(CandidateReason.None, summary.CandidateReason); 567Assert.Equal(CandidateReason.None, summary.CandidateReason);
Semantics\UnsafeTests.cs (25)
7862Assert.Equal(CandidateReason.None, receiverSummary.CandidateReason); 7871Assert.Equal(CandidateReason.None, methodGroupSummary.CandidateReason); 7880Assert.Equal(CandidateReason.None, callSummary.CandidateReason); 7929Assert.Equal(CandidateReason.None, receiverSummary.CandidateReason); 8173Assert.Equal(CandidateReason.None, receiverSummary.CandidateReason); 8185Assert.Equal(CandidateReason.None, indexSummary.CandidateReason); 8194Assert.Equal(CandidateReason.None, accessSummary.CandidateReason); 8240Assert.Equal(CandidateReason.None, receiverSummary.CandidateReason); 8253Assert.Equal(CandidateReason.None, accessSummary.CandidateReason); 8298Assert.Equal(CandidateReason.None, receiverSummary.CandidateReason); 8311Assert.Equal(CandidateReason.None, accessSummary.CandidateReason); 8881Assert.Equal(CandidateReason.None, summary.CandidateReason); 8916Assert.Equal(CandidateReason.None, summary.CandidateReason); 9343Assert.Equal(CandidateReason.None, summary.CandidateReason); 10235Assert.Equal(CandidateReason.None, summary.CandidateReason); 10304Assert.Equal(CandidateReason.None, summary.CandidateReason); 10635Assert.Equal(CandidateReason.None, typeSummary.CandidateReason); 10648Assert.Equal(CandidateReason.None, sizeOfSummary.CandidateReason); 10697Assert.Equal(CandidateReason.None, typeSummary.CandidateReason); 10710Assert.Equal(CandidateReason.None, sizeOfSummary.CandidateReason); 10757Assert.Equal(CandidateReason.None, typeSummary.CandidateReason); 10770Assert.Equal(CandidateReason.None, sizeOfSummary.CandidateReason); 11316Assert.Equal(CandidateReason.None, stackAllocSummary.CandidateReason); 11328Assert.Equal(CandidateReason.None, typeSummary.CandidateReason); 11342Assert.Equal(CandidateReason.None, countSummary.CandidateReason);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (222)
Compilation\GetSemanticInfoTests.cs (10)
1224Assert.Equal(CandidateReason.None, bindInfo.CandidateReason); 1420Assert.Equal(CandidateReason.None, bindInfo.CandidateReason); 1425Assert.Equal(CandidateReason.None, bindInfo.CandidateReason); 1461Assert.Equal(CandidateReason.OverloadResolutionFailure, bindInfo.CandidateReason); 1466Assert.Equal(CandidateReason.OverloadResolutionFailure, bindInfo.CandidateReason); 1495Assert.Equal(CandidateReason.None, bindInfo.CandidateReason); 1500Assert.Equal(CandidateReason.None, bindInfo.CandidateReason); 1530Assert.Equal(CandidateReason.WrongArity, bindInfo.CandidateReason); 1815Assert.Equal(CandidateReason.OverloadResolutionFailure, bindInfo.CandidateReason); 4296Assert.Equal(CandidateReason.None, info.CandidateReason);
Compilation\SemanticModelGetSemanticInfoTests.cs (186)
52Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 122Assert.Equal(CandidateReason.WrongArity, semanticInfo.CandidateReason); 156Assert.Equal(CandidateReason.WrongArity, semanticInfo.CandidateReason); 197Assert.Equal(CandidateReason.WrongArity, semanticInfo.CandidateReason); 238Assert.Equal(CandidateReason.WrongArity, semanticInfo.CandidateReason); 278Assert.Equal(CandidateReason.NotInvocable, semanticInfo.CandidateReason); 315Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 345Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 375Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 408Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 433Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 468Assert.Equal(CandidateReason.NotAVariable, semanticInfo.CandidateReason); 508Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 551Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason); 599Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason); 647Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason); 700Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason); 801Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 2584Assert.Equal(CandidateReason.StaticInstanceMismatch, semanticInfo.CandidateReason); 2696Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 2737Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 2787Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 2833Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 2952Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 2988Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 3022Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 3431Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 3463Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 3529Assert.Equal(CandidateReason.NotATypeOrNamespace, semanticInfo.CandidateReason); 3843Assert.NotEqual(CandidateReason.None, semanticInfo.CandidateReason); 3942Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 3978Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 4075Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 4165Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 4191Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 4219Assert.Equal(CandidateReason.WrongArity, semanticInfo.CandidateReason); 4252Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 4286Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 4378Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 4649Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 4923Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 4970Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 5022Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 5073Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 5112Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 5159Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 5408Assert.Equal(CandidateReason.NotReferencable, semanticInfo.CandidateReason); 5450Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason); 5486Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 5515Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 5734Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 5767Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 5834Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 5902Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 5970Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 6037Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 6065Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 6097Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 6375Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 6402Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 6647Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 6681Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 6812Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 6971Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 7175Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 7207Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 7239Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 7268Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 7349Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 7405Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 7431Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 7459Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 7492Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 7528Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 7591Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 7629Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 7857Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 7923Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 7955Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 7989Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 8025Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 8041Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 8078Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 8094Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 8375Assert.Equal(CandidateReason.NotAnAttributeType, semanticInfo.CandidateReason); 8409Assert.Equal(CandidateReason.NotAnAttributeType, semanticInfo.CandidateReason); 8520Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 8690Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 8732Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 8774Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 8815Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 8939Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 9068Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 9129Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 9364Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason); 9423Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason); 9461Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 9534Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason); 9570Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason); 9620Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason); 9675Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 9726Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 9786Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason); 9837Assert.Equal(CandidateReason.NotAnAttributeType, semanticInfo.CandidateReason); 9892Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason); 10183Assert.Equal(CandidateReason.NotAnAttributeType, semanticInfo.CandidateReason); 10222Assert.Equal(CandidateReason.NotAnAttributeType, semanticInfo.CandidateReason); 10253Assert.Equal(CandidateReason.NotAnAttributeType, semanticInfo.CandidateReason); 10288Assert.Equal(CandidateReason.NotAnAttributeType, semanticInfo.CandidateReason); 10323Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason); 10357Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason); 10391Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason); 10433Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason); 10472Assert.Equal(CandidateReason.StaticInstanceMismatch, semanticInfo.CandidateReason); 10499Assert.Equal(CandidateReason.NotReferencable, semanticInfo.CandidateReason); 10529Assert.Equal(CandidateReason.NotReferencable, semanticInfo.CandidateReason); 10564Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 10606Assert.Equal(CandidateReason.NotAValue, semanticInfo.CandidateReason); 10643Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 10680Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 10719Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 10762Assert.Equal(CandidateReason.NotAVariable, semanticInfo.CandidateReason); 10804Assert.Equal(CandidateReason.NotAVariable, semanticInfo.CandidateReason); 10841Assert.Equal(CandidateReason.NotAnAttributeType, semanticInfo.CandidateReason); 10910Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 11150Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 11194Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 11228Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 11466Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 11503Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 11541Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 11578Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 11613Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 11801Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 11872Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 11943Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 12014Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 12049Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 12085Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 12158Assert.Equal(CandidateReason.NotCreatable, semanticInfo.CandidateReason); 12192Assert.Equal(CandidateReason.NotCreatable, semanticInfo.CandidateReason); 12225Assert.Equal(CandidateReason.NotCreatable, semanticInfo.CandidateReason); 12262Assert.Equal(CandidateReason.NotCreatable, semanticInfo.CandidateReason); 12293Assert.Equal(CandidateReason.NotCreatable, semanticInfo.CandidateReason); 12328Assert.Equal(CandidateReason.NotCreatable, semanticInfo.CandidateReason); 12361Assert.Equal(CandidateReason.NotCreatable, semanticInfo.CandidateReason); 12397Assert.Equal(CandidateReason.NotCreatable, semanticInfo.CandidateReason); 12432Assert.Equal(CandidateReason.NotCreatable, semanticInfo.CandidateReason); 12459Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 12490Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 12713Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 12745Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 12889Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 12964Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 13002Assert.Equal(CandidateReason.NotAVariable, semanticInfo.CandidateReason); 13043Assert.Equal(CandidateReason.NotAValue, semanticInfo.CandidateReason); 13074Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 13135Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 13169Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 13203Assert.Equal(CandidateReason.NotAVariable, semanticInfo.CandidateReason); 13234Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 13388Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 13448Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 13567Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 13597Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 13662Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 13691Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 13747Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 13780Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 13811Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 13845Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 13879Assert.Equal(CandidateReason.NotAnAttributeType, semanticInfo.CandidateReason); 13918Assert.Equal(CandidateReason.NotAnAttributeType, semanticInfo.CandidateReason); 13984Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 14011Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 14165Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 14297Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 14343Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 14386Assert.Equal(CandidateReason.NotCreatable, semanticInfo.CandidateReason); 14424Assert.Equal(CandidateReason.NotCreatable, semanticInfo.CandidateReason); 14513Assert.Equal(CandidateReason.NotCreatable, semanticInfo.CandidateReason); 14547Assert.Equal(CandidateReason.NotCreatable, semanticInfo.CandidateReason); 14596Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 14669Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 15119Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 15344Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason);
Compilation\SemanticModelGetSemanticInfoTests_LateBound.cs (26)
42Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 66Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 88Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 114Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 145Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 171Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 199Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 230Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 270Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 293Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 322Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 351Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 377Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 422Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 518Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 555Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 591Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 619Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 656Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 683Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 719Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 748Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 775Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 802Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 830Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 861Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (4)
FunctionPointerUtilities.cs (4)
220Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 225Assert.Equal(expectedReason, semanticInfo.CandidateReason); 232Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 258Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason);