116 references to CompilationUtils
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\InteractiveSemanticModelTests.cs (1)
355
private
CompilationUtils
.SemanticInfoSummary GetBindInfoForTest(string testSrc)
Semantics\LookupTests.cs (1)
1372
CompilationUtils
.CheckISymbols(symbols, "System", "Microsoft");
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (109)
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (14)
1485
CompilationUtils
.CheckConstraints(symbol, TypeParameterConstraintKind.Constructor);
1490
CompilationUtils
.CheckConstraints(symbol, TypeParameterConstraintKind.ValueType, "I<int>");
1494
CompilationUtils
.CheckConstraints(symbol, TypeParameterConstraintKind.None, "A");
1498
CompilationUtils
.CheckConstraints(symbol, TypeParameterConstraintKind.None, "T");
1534
CompilationUtils
.CheckConstraints(symbol, TypeParameterConstraintKind.None, "T2");
1536
CompilationUtils
.CheckConstraints(symbol, TypeParameterConstraintKind.None);
1539
CompilationUtils
.CheckConstraints(symbol, TypeParameterConstraintKind.None, "U2");
1541
CompilationUtils
.CheckConstraints(symbol, TypeParameterConstraintKind.None);
1546
CompilationUtils
.CheckConstraints(symbol, TypeParameterConstraintKind.None);
1548
CompilationUtils
.CheckConstraints(symbol, TypeParameterConstraintKind.None, "T4");
1551
CompilationUtils
.CheckConstraints(symbol, TypeParameterConstraintKind.None);
1553
CompilationUtils
.CheckConstraints(symbol, TypeParameterConstraintKind.None, "U4");
2026
CompilationUtils
.CheckISymbols(symbols, descriptions);
2031
CompilationUtils
.CheckSymbolsUnordered(symbols, descriptions);
Compilation\SemanticModelGetSemanticInfoTests.cs (70)
21
using Utils =
CompilationUtils
;
840
Utils
.CheckISymbols(semanticInfo.MethodGroup,
845
Utils
.CheckISymbols(semanticInfo.CandidateSymbols,
850
Utils
.CheckReducedExtensionMethod(semanticInfo.MethodGroup[3].GetSymbol(),
877
Utils
.CheckISymbols(semanticInfo.MethodGroup,
898
Utils
.CheckISymbols(semanticInfo.MethodGroup,
925
Utils
.CheckSymbol(semanticInfo.Symbol,
927
Utils
.CheckISymbols(semanticInfo.MethodGroup,
930
Utils
.CheckISymbols(semanticInfo.CandidateSymbols);
953
Utils
.CheckISymbols(semanticInfo.MethodGroup,
975
Utils
.CheckSymbol(semanticInfo.Symbol,
977
Utils
.CheckISymbols(semanticInfo.MethodGroup);
978
Utils
.CheckISymbols(semanticInfo.CandidateSymbols);
995
Utils
.CheckISymbols(semanticInfo.MethodGroup);
996
Utils
.CheckISymbols(semanticInfo.CandidateSymbols,
1015
Utils
.CheckISymbols(semanticInfo.MethodGroup);
1016
Utils
.CheckISymbols(semanticInfo.CandidateSymbols,
1035
Utils
.CheckISymbols(semanticInfo.MethodGroup);
1036
Utils
.CheckISymbols(semanticInfo.CandidateSymbols
1058
Utils
.CheckSymbol(semanticInfo.Symbol,
1060
Utils
.CheckISymbols(semanticInfo.MethodGroup,
1063
Utils
.CheckISymbols(semanticInfo.CandidateSymbols);
1080
Utils
.CheckISymbols(semanticInfo.MethodGroup,
1083
Utils
.CheckISymbols(semanticInfo.CandidateSymbols,
1117
Utils
.CheckISymbols(symbols,
1121
Utils
.CheckISymbols(symbols,
1125
Utils
.CheckISymbols(symbols,
1151
Utils
.CheckISymbols(symbols,
1156
Utils
.CheckISymbols(symbols,
1181
Utils
.CheckISymbols(symbols,
1184
Utils
.CheckISymbols(symbols,
1211
Utils
.CheckISymbols(symbols,
1214
Utils
.CheckISymbols(symbols,
1237
Utils
.CheckISymbols(symbols,
1240
Utils
.CheckISymbols(symbols,
1264
Utils
.CheckISymbols(symbols,
1268
Utils
.CheckISymbols(symbols,
1292
Utils
.CheckISymbols(symbols,
1295
Utils
.CheckISymbols(symbols,
1319
Utils
.CheckISymbols(symbols,
1322
Utils
.CheckISymbols(symbols,
1360
Utils
.CheckISymbols(symbols,
1366
Utils
.CheckISymbols(symbols,
1398
Utils
.CheckISymbols(symbols,
1402
Utils
.CheckISymbols(symbols,
1453
Utils
.CheckSymbol(semanticInfo.Symbol, "string A.P[int x, string y]");
1454
Utils
.CheckISymbols(semanticInfo.MemberGroup,
1458
Utils
.CheckISymbols(semanticInfo.CandidateSymbols);
1471
Utils
.CheckSymbol(semanticInfo.Symbol, "string A.P[int x, string y]");
1472
Utils
.CheckISymbols(semanticInfo.MemberGroup);
1473
Utils
.CheckISymbols(semanticInfo.CandidateSymbols);
1483
Utils
.CheckSymbol(semanticInfo.Symbol, "object A.P[int x = 0]");
1484
Utils
.CheckISymbols(semanticInfo.MemberGroup);
1485
Utils
.CheckISymbols(semanticInfo.CandidateSymbols);
1499
Utils
.CheckISymbols(semanticInfo.MemberGroup,
1503
Utils
.CheckISymbols(semanticInfo.CandidateSymbols,
1520
Utils
.CheckISymbols(semanticInfo.MemberGroup);
1521
Utils
.CheckISymbols(semanticInfo.CandidateSymbols,
1592
Utils
.CheckSymbol(semanticInfo.Symbol, "object B.P1[object index]");
1593
Utils
.CheckISymbols(semanticInfo.MemberGroup, "object B.P1[object index]");
1594
Utils
.CheckISymbols(semanticInfo.CandidateSymbols);
1607
Utils
.CheckSymbol(semanticInfo.Symbol, "object B.P2[string index]");
1608
Utils
.CheckISymbols(semanticInfo.MemberGroup, "object B.P2[string index]");
1609
Utils
.CheckISymbols(semanticInfo.CandidateSymbols);
1622
Utils
.CheckSymbol(semanticInfo.Symbol, "object A.P3[object index]");
1623
Utils
.CheckISymbols(semanticInfo.MemberGroup, "object A.P3[object index]", "object A.P3[object x, object y]");
1624
Utils
.CheckISymbols(semanticInfo.CandidateSymbols);
11141
private void Verify_AttributeSemanticInfo_OverloadResolutionFailure_Common(
CompilationUtils
.SemanticInfoSummary semanticInfo)
14595
Utils
.CheckSymbol(semanticInfo.CandidateSymbols.Single(), "void C.M<T>(T t)");
14598
Utils
.CheckSymbol(semanticInfo.ConvertedType, "D");
Symbols\AnonymousTypesSemanticsTests.cs (1)
1983
private
CompilationUtils
.SemanticInfoSummary GetAnonymousTypeInfoSummary(TestData data, int node, TextSpan typeSpan, params int[] fields)
Symbols\ExtensionMethodTests.cs (8)
19
using Utils = Microsoft.CodeAnalysis.CSharp.UnitTests.
CompilationUtils
;
2436
Utils
.CheckSymbol(symbol, "IEnumerable<string> IEnumerable<string>.Take<string>(int count)");
2571
Utils
.CheckReducedExtensionMethod(extensionMethod, reducedMethodDescription, reducedFromDescription, constructedFromDescription, reducedAndConstructedFromDescription);
2575
Utils
.CheckReducedExtensionMethod(extensionMethod, reducedMethodDescription, reducedFromDescription, constructedFromDescription, reducedAndConstructedFromDescription);
2959
Utils
.CheckISymbols(lookupResult,
2967
Utils
.CheckISymbols(lookupResult,
2971
Utils
.CheckISymbols(memberGroup,
3019
Utils
.CheckISymbols(info.CandidateSymbols,
Symbols\GenericConstraintTests.cs (11)
18
using Utils = Microsoft.CodeAnalysis.CSharp.UnitTests.
CompilationUtils
;
158
Utils
.CheckSymbol(method, "void A<T>.M1<U>(T t)");
162
Utils
.CheckSymbol(method, "void A<T>.M2<U>(U u)");
167
Utils
.CheckSymbol(method, "void B<T>.M1<U>(T t)");
168
Utils
.CheckSymbol(method.OverriddenMethod, "void A<T>.M1<U>(T t)");
172
Utils
.CheckSymbol(method, "void B<T>.M2<U>(U u)");
173
Utils
.CheckSymbol(method.OverriddenMethod, "void A<T>.M2<U>(U u)");
5721
Assert.Equal(constraints,
Utils
.GetTypeParameterConstraints(typeParameter));
5726
Utils
.CheckSymbol(typeParameter.EffectiveBaseClassNoUseSiteDiagnostics, effectiveBaseClassDescription);
5727
Utils
.CheckSymbol(typeParameter.DeducedBaseTypeNoUseSiteDiagnostics, deducedBaseTypeDescription);
5728
Utils
.CheckSymbols(typeParameter.ConstraintTypes(), constraintTypeDescriptions);
Symbols\Retargeting\RetargetingTests.cs (5)
16
using Utils = Microsoft.CodeAnalysis.CSharp.UnitTests.
CompilationUtils
;
50
Utils
.CheckSymbols(sourceMethods.ToImmutable(),
56
Utils
.CheckSymbols(retargetingMethods.ToImmutable(),
67
Utils
.CheckSymbols(sourceMethods.ToImmutable(),
73
Utils
.CheckSymbols(retargetingMethods.ToImmutable(),
Microsoft.CodeAnalysis.CSharp.Test.Utilities (5)
FunctionPointerUtilities.cs (1)
214
CompilationUtils
.SemanticInfoSummary semanticInfo)
SemanticModelTestBase.cs (4)
114
protected
CompilationUtils
.SemanticInfoSummary GetSemanticInfoForTest<TNode>(string testSrc, CSharpParseOptions parseOptions = null) where TNode : SyntaxNode
120
internal
CompilationUtils
.SemanticInfoSummary GetSemanticInfoForTestExperimental<TNode>(string testSrc, MessageID feature, CSharpParseOptions parseOptions = null) where TNode : SyntaxNode
126
protected
CompilationUtils
.SemanticInfoSummary GetSemanticInfoForTest<TNode>(CSharpCompilation compilation) where TNode : SyntaxNode
161
protected
CompilationUtils
.SemanticInfoSummary GetSemanticInfoForTest(string testSrc)