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