Implemented interface member:
555 references to
AnalyzerRunner (3)
ILLink.CodeFixProvider (1)
Microsoft.AspNetCore.App.Analyzers (6)
Microsoft.AspNetCore.App.CodeFixes (4)
Microsoft.Build (1)
Microsoft.Build.BuildCheck.UnitTests (4)
Microsoft.Build.Tasks.Core (1)
Microsoft.Build.Utilities.Core (1)
Microsoft.CodeAnalysis (3)
Microsoft.CodeAnalysis.CodeStyle (4)
Microsoft.CodeAnalysis.CodeStyle.Fixes (15)
Microsoft.CodeAnalysis.CSharp (7)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (8)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (20)
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Features (8)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (282)
SourceGeneration\GeneratorDriverTests.cs (41)
1695Assert.Collection(runResult.TrackedSteps["IdentityTransform"],
1707Assert.Collection(runResult.TrackedSteps["IdentityTransform"],
1744Assert.Collection(runResult.TrackedSteps["CompilationTransform"],
1760Assert.Collection(runResult.TrackedSteps["AdditionalTextsTransform"],
1782Assert.Collection(runResult.TrackedSteps["CompilationTransform"],
1798Assert.Collection(runResult.TrackedSteps["AdditionalTextsTransform"],
1835Assert.Collection(runResult.TrackedSteps["CompilationTransform"],
1851Assert.Collection(runResult.TrackedSteps["AdditionalTextsTransform"],
1887Assert.Collection(runResult.TrackedSteps["CompilationTransform"],
1903Assert.Collection(runResult.TrackedSteps["AdditionalTextsTransform"],
2004Assert.Collection(runResult.TrackedSteps["Step"],
2033Assert.Collection(runResult.TrackedSteps["Step"],
2059Assert.Collection(runResult.TrackedSteps["Step2"],
2085Assert.Collection(runResult.TrackedSteps["Step"],
2335driver.GetRunResult().Results.Single().TrackedSteps["Select"].Select(r => r.Outputs.Single()));
2356driver.GetRunResult().Results.Single().TrackedSteps["Select"].Select(r => r.Outputs.Single()));
2403Assert.Collection(runResult.TrackedSteps["Classes"],
2419Assert.Collection(runResult.TrackedSteps["Classes"],
2436Assert.Collection(runResult.TrackedSteps["Classes"],
2502Assert.Single(runResult.TrackedSteps["ParseOptions"]);
2503var output = runResult.TrackedSteps["ParseOptions"][0].Outputs[0].Value;
2509Assert.Collection(runResult.TrackedSteps["ParseOptions"],
2522Assert.Single(runResult.TrackedSteps["ParseOptions"]);
2523output = runResult.TrackedSteps["ParseOptions"][0].Outputs[0].Value;
2529Assert.Collection(runResult.TrackedSteps["ParseOptions"],
2636Assert.Collection(runResult.TrackedSteps["AnalyzerConfig"],
2652Assert.Collection(runResult.TrackedSteps["AnalyzerConfig"],
2674Assert.Collection(runResult.TrackedSteps["AnalyzerConfig"],
2714Assert.Collection(runResult.TrackedSteps["Paths"],
2767Assert.Collection(runResult.TrackedSteps["Paths"],
2823Assert.Collection(runResult.TrackedSteps["Paths"],
2904Assert.Collection(runResult.TrackedSteps["Path"],
2921Assert.Collection(runResult.TrackedSteps["Content"],
2942Assert.Collection(runResult.TrackedSteps["Path"],
2959Assert.Collection(runResult.TrackedSteps["Content"],
2984Assert.Collection(runResult.TrackedSteps["Path"],
3001Assert.Collection(runResult.TrackedSteps["Content"],
3026Assert.Collection(runResult.TrackedSteps["Path"],
3043Assert.Collection(runResult.TrackedSteps["Content"],
4564Assert.Equal("value", result.HostOutputs["a"]);
4566Assert.Equal("value2", result.HostOutputs["b"]);
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.cs (107)
82Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
161Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
191Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
221Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
248Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
275Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
303Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
334Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
370Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
409Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
438Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
471Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
504Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
536Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
568Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
599Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
630Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
663Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
694Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
723Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
757Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
786Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
823Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
860Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
897Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
934Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1042Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1079Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1117Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1155Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1193Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1231Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1428Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1435Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1439Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1440Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1441Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1442Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs.Single().Reason);
1443Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1444Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["result_ForAttributeInternal"].Single().Outputs.Single().Reason);
1445Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationAndGroupedNodes_ForAttributeWithMetadataName"].Single().Outputs.Single().Reason);
1446Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["result_ForAttributeWithMetadataName"].Single().Outputs.Single().Reason);
1475Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1482Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1486Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1487Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1488Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1489Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs.Single().Reason);
1490Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1491Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["result_ForAttributeInternal"].Single().Outputs.Single().Reason);
1492Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["compilationAndGroupedNodes_ForAttributeWithMetadataName"].Single().Outputs.Single().Reason);
1493Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["result_ForAttributeWithMetadataName"].Single().Outputs.Single().Reason);
1522Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1528Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1532Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1533Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1534Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1535Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs,
1537Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1538Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["result_ForAttributeInternal"].Single().Outputs.Single().Reason);
1539Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["compilationAndGroupedNodes_ForAttributeWithMetadataName"].Single().Outputs.Single().Reason);
1540Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["result_ForAttributeWithMetadataName"].Single().Outputs.Single().Reason);
1574Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1578Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1579Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1580Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1581Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs,
1583Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1584Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["result_ForAttributeInternal"].Single().Outputs.Single().Reason);
1585Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["compilationAndGroupedNodes_ForAttributeWithMetadataName"].Single().Outputs.Single().Reason);
1586Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["result_ForAttributeWithMetadataName"].Single().Outputs.Single().Reason);
1622Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1628Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1629Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1630Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1631Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs,
1633Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1634Assert.Collection(runResult.TrackedSteps["result_ForAttributeInternal"].Single().Outputs,
1636Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["compilationAndGroupedNodes_ForAttributeWithMetadataName"].Single().Outputs.Single().Reason);
1637Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"].Single().Outputs,
1675Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1680Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1681Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1682Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1683Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs,
1686Assert.Collection(runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"],
1689Assert.Collection(runResult.TrackedSteps["result_ForAttributeInternal"],
1692Assert.Collection(runResult.TrackedSteps["compilationAndGroupedNodes_ForAttributeWithMetadataName"],
1695Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1739Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1743Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1744Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1745Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1746Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs.Single().Reason);
1747Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1748Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["result_ForAttributeInternal"].Single().Outputs.Single().Reason);
1749Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["compilationAndGroupedNodes_ForAttributeWithMetadataName"].Single().Outputs.Single().Reason);
1750Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["result_ForAttributeWithMetadataName"].Single().Outputs.Single().Reason);
1787Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"],
1791Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1792Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1793Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1794Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs,
1796Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1797Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["result_ForAttributeInternal"].Single().Outputs.Single().Reason);
1798Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["compilationAndGroupedNodes_ForAttributeWithMetadataName"].Single().Outputs.Single().Reason);
1799Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["result_ForAttributeWithMetadataName"].Single().Outputs.Single().Reason);
SourceGeneration\GeneratorDriverTests_Attributes_SimpleName.cs (116)
53Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
85Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
161Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
189Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
221Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
253Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
287Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
320Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
346Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
372Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
398Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
431Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
459Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
545Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
578Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
610Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
809Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
840Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
870Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
955Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
984Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1016Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1023Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1027Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1028Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1029Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs.Single().Reason);
1030Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1031Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["result_ForAttribute"].Single().Outputs.Single().Reason);
1056Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1063Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1067Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1068Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1069Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs.Single().Reason);
1070Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1071Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["result_ForAttribute"].Single().Outputs.Single().Reason);
1102Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1109Assert.Collection(runResult.TrackedSteps["individualFileGlobalAliases_ForAttribute"],
1114Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1117Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1119Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs,
1123Assert.Equal(IncrementalStepRunReason.Removed, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1124Assert.Equal(IncrementalStepRunReason.Removed, runResult.TrackedSteps["result_ForAttribute"].Single().Outputs.Single().Reason);
1155Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1165Assert.Collection(runResult.TrackedSteps["individualFileGlobalAliases_ForAttribute"],
1168Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1169Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1171Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs,
1175Assert.Equal(IncrementalStepRunReason.Removed, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1176Assert.Equal(IncrementalStepRunReason.Removed, runResult.TrackedSteps["result_ForAttribute"].Single().Outputs.Single().Reason);
1216Assert.Collection(runResult.TrackedSteps["individualFileGlobalAliases_ForAttribute"],
1219Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1220Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1222Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs,
1226Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1227Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["result_ForAttribute"].Single().Outputs.Single().Reason);
1229Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1261Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1272Assert.Collection(runResult.TrackedSteps["individualFileGlobalAliases_ForAttribute"],
1275Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1276Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1278Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs,
1282Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1283Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["result_ForAttribute"].Single().Outputs.Single().Reason);
1314Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1321Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1328Assert.Collection(runResult.TrackedSteps["individualFileGlobalAliases_ForAttribute"],
1331Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1332Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1334Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs,
1338Assert.Equal(IncrementalStepRunReason.Removed, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1339Assert.Equal(IncrementalStepRunReason.Removed, runResult.TrackedSteps["result_ForAttribute"].Single().Outputs.Single().Reason);
1372Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1379Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1382Assert.Collection(runResult.TrackedSteps["individualFileGlobalAliases_ForAttribute"],
1385Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1386Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1388Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs,
1392Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1393Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["result_ForAttribute"].Single().Outputs.Single().Reason);
1428Assert.Collection(runResult.TrackedSteps["individualFileGlobalAliases_ForAttribute"],
1431Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1432Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1434Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs,
1438Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1439Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["result_ForAttribute"].Single().Outputs.Single().Reason);
1441Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1473Assert.Collection(runResult.TrackedSteps["individualFileGlobalAliases_ForAttribute"],
1475Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1476Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1478Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs,
1481Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1482Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["result_ForAttribute"].Single().Outputs.Single().Reason);
1484Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1516Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1525Assert.Collection(runResult.TrackedSteps["individualFileGlobalAliases_ForAttribute"],
1528Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1529Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1531Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs,
1535Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1536Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["result_ForAttribute"].Single().Outputs.Single().Reason);
1567Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1577Assert.Collection(runResult.TrackedSteps["individualFileGlobalAliases_ForAttribute"],
1580Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1581Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1583Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs,
1588Assert.Collection(runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"],
1591Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1595Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1628Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
1639Assert.Collection(runResult.TrackedSteps["individualFileGlobalAliases_ForAttribute"],
1642Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1643Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1645Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs,
1649Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1650Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["result_ForAttribute"].Single().Outputs.Single().Reason);
1652Assert.Collection(runResult.TrackedSteps["result_ForAttribute"],
SourceGeneration\SyntaxAwareGeneratorTests.cs (18)
1032Assert.Collection(results.Results[0].TrackedSteps["Fields"],
1052Assert.Collection(results.Results[0].TrackedSteps["Fields"],
1109Assert.Collection(results.Results[0].TrackedSteps["Fields"],
1131Assert.Collection(results.Results[0].TrackedSteps["Fields"],
1239Assert.Collection(results.Results[0].TrackedSteps["Fields"],
1268Assert.Collection(results.Results[0].TrackedSteps["Fields"],
1414Assert.Collection(results.Results[0].TrackedSteps["Fields"],
1444Assert.Collection(results.Results[0].TrackedSteps["Syntax"],
1451Assert.Collection(results.Results[0].TrackedSteps["Fields"],
1477Assert.Collection(results.Results[0].TrackedSteps["Fields"],
1528Assert.Collection(results.Results[0].TrackedSteps["Fields"],
1543Assert.Collection(results.Results[0].TrackedSteps["Fields"],
1699Assert.Collection(results.Results[0].TrackedSteps["Fields"],
1706Assert.Collection(results.Results[0].TrackedSteps["Output"],
1758Assert.Collection(results.Results[0].TrackedSteps["Fields"],
1765Assert.Collection(results.Results[0].TrackedSteps["Output"],
1812Assert.Collection(results.Results[0].TrackedSteps["Fields"],
1825Assert.Collection(results.Results[0].TrackedSteps["Output"],
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Microsoft.CodeAnalysis.EditorFeatures (1)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (5)
Microsoft.CodeAnalysis.ExternalAccess.Razor (1)
Microsoft.CodeAnalysis.Features (17)
Microsoft.CodeAnalysis.LanguageServer.Protocol (7)
Microsoft.CodeAnalysis.Remote.Workspaces (2)
Microsoft.CodeAnalysis.Test.Utilities (5)
Microsoft.CodeAnalysis.UnitTests (50)
Analyzers\AnalyzerConfigTests.cs (12)
113Assert.Equal("abc123", sectionOptions.AnalyzerOptions["build_metadata.compile.toretrieve"]);
116Assert.Equal("def456", sectionOptions.AnalyzerOptions["build_metadata.compile.toretrieve"]);
135Assert.Equal("abc123", sectionOptions.AnalyzerOptions["build_metadata.compile.toretrieve"]);
138Assert.Equal("abc123", sectionOptions.AnalyzerOptions["build_metadata.compile.toretrieve"]);
141Assert.Equal("def456", sectionOptions.AnalyzerOptions["build_metadata.compile.toretrieve"]);
144Assert.Equal("def456", sectionOptions.AnalyzerOptions["build_metadata.compile.toretrieve"]);
147Assert.Equal("global", sectionOptions.AnalyzerOptions["build_metadata.compile.toretrieve"]);
150Assert.Equal("global", sectionOptions.AnalyzerOptions["build_metadata.compile.toretrieve"]);
2397Assert.Equal("123", sectionOptions.AnalyzerOptions["global_level"]);
2611Assert.Equal("b", options.AnalyzerOptions["a"]);
2637Assert.Equal("a", options.AnalyzerOptions["a"]);
2638Assert.Equal("b", options.AnalyzerOptions["b"]);
CommonCommandLineParserTests.cs (38)
167Assert.Equal(expected: ReportDiagnostic.Error, actual: ruleSet.SpecificDiagnosticOptions["CA1012"]);
411Assert.Equal(ReportDiagnostic.Error, ruleSet.SpecificDiagnosticOptions["CA1012"]);
413Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1013"]);
415Assert.Equal(ReportDiagnostic.Suppress, ruleSet.SpecificDiagnosticOptions["CA1014"]);
417Assert.Equal(ReportDiagnostic.Info, ruleSet.SpecificDiagnosticOptions["CA1015"]);
419Assert.Equal(ReportDiagnostic.Hidden, ruleSet.SpecificDiagnosticOptions["CA1016"]);
478Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1013"]);
503Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1012"]);
505Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1013"]);
531Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1012"]);
533Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1013"]);
559Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1012"]);
561Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1013"]);
588Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1012"]);
590Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1013"]);
626Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1012"]);
628Assert.Equal(ReportDiagnostic.Error, ruleSet.SpecificDiagnosticOptions["CA1013"]);
664Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1012"]);
666Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1013"]);
668Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1014"]);
694Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1012"]);
730Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1012"]);
764Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1012"]);
767Assert.Equal(ReportDiagnostic.Error, ruleSet.SpecificDiagnosticOptions["CA1013"]);
791Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1012"]);
815Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1012"]);
817Assert.Equal(ReportDiagnostic.Error, ruleSet.SpecificDiagnosticOptions["CA1013"]);
887Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1012"]);
889Assert.Equal(ReportDiagnostic.Suppress, ruleSet.SpecificDiagnosticOptions["CA1013"]);
912Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1012"]);
914Assert.Equal(ReportDiagnostic.Error, ruleSet.SpecificDiagnosticOptions["CA1013"]);
952Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1000"]);
953Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1001"]);
954Assert.Equal(ReportDiagnostic.Error, ruleSet.SpecificDiagnosticOptions["CA2100"]);
955Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA2104"]);
956Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA2105"]);
957Assert.Equal(ReportDiagnostic.Suppress, ruleSet.SpecificDiagnosticOptions["CA2111"]);
958Assert.Equal(ReportDiagnostic.Suppress, ruleSet.SpecificDiagnosticOptions["CA2119"]);
Microsoft.CodeAnalysis.Workspaces (14)
Microsoft.DotNet.Build.Tasks.Feed (3)
Microsoft.DotNet.SignTool (4)
Microsoft.Interop.LibraryImportGenerator (3)
Microsoft.Interop.SourceGeneration (1)
Microsoft.ML.InternalCodeAnalyzer (2)
Microsoft.ML.Tests (48)
PermutationFeatureImportanceTests.cs (48)
75Assert.Equal(JsonConvert.SerializeObject(pfi[0]), JsonConvert.SerializeObject(pfiDict["X1"]));
76Assert.Equal(JsonConvert.SerializeObject(pfi[1]), JsonConvert.SerializeObject(pfiDict["X2Important"]));
77Assert.Equal(JsonConvert.SerializeObject(pfi[2]), JsonConvert.SerializeObject(pfiDict["X3"]));
78Assert.Equal(JsonConvert.SerializeObject(pfi[3]), JsonConvert.SerializeObject(pfiDict["X4Rand"]));
149Assert.Equal(JsonConvert.SerializeObject(pfi[0]), JsonConvert.SerializeObject(pfiDict["X1"]));
150Assert.Equal(JsonConvert.SerializeObject(pfi[1]), JsonConvert.SerializeObject(pfiDict["X2Important"]));
151Assert.Equal(JsonConvert.SerializeObject(pfi[2]), JsonConvert.SerializeObject(pfiDict["X3"]));
152Assert.Equal(JsonConvert.SerializeObject(pfi[3]), JsonConvert.SerializeObject(pfiDict["X4Rand"]));
221Assert.Equal(JsonConvert.SerializeObject(pfi[0]), JsonConvert.SerializeObject(pfiDict["X1"]));
222Assert.Equal(JsonConvert.SerializeObject(pfi[1]), JsonConvert.SerializeObject(pfiDict["X2Important"]));
223Assert.Equal(JsonConvert.SerializeObject(pfi[2]), JsonConvert.SerializeObject(pfiDict["X3"]));
224Assert.Equal(JsonConvert.SerializeObject(pfi[3]), JsonConvert.SerializeObject(pfiDict["X4Rand"]));
307Assert.Equal(JsonConvert.SerializeObject(results[0]), JsonConvert.SerializeObject(pfiDict["X1"]));
308Assert.Equal(JsonConvert.SerializeObject(results[1]), JsonConvert.SerializeObject(pfiDict["Slot 1"]));
309Assert.Equal(JsonConvert.SerializeObject(results[2]), JsonConvert.SerializeObject(pfiDict["Slot 2"]));
310Assert.Equal(JsonConvert.SerializeObject(results[3]), JsonConvert.SerializeObject(pfiDict["Slot 3"]));
311Assert.Equal(JsonConvert.SerializeObject(results[4]), JsonConvert.SerializeObject(pfiDict["Slot 4"]));
312Assert.Equal(JsonConvert.SerializeObject(results[5]), JsonConvert.SerializeObject(pfiDict["X3Important"]));
381Assert.Equal(JsonConvert.SerializeObject(pfi[0]), JsonConvert.SerializeObject(pfiDict["X1"]));
382Assert.Equal(JsonConvert.SerializeObject(pfi[1]), JsonConvert.SerializeObject(pfiDict["X2Important"]));
383Assert.Equal(JsonConvert.SerializeObject(pfi[2]), JsonConvert.SerializeObject(pfiDict["X3"]));
384Assert.Equal(JsonConvert.SerializeObject(pfi[3]), JsonConvert.SerializeObject(pfiDict["X4Rand"]));
456Assert.Equal(JsonConvert.SerializeObject(pfi[0]), JsonConvert.SerializeObject(pfiDict["X1"]));
457Assert.Equal(JsonConvert.SerializeObject(pfi[1]), JsonConvert.SerializeObject(pfiDict["Slot 1"]));
458Assert.Equal(JsonConvert.SerializeObject(pfi[2]), JsonConvert.SerializeObject(pfiDict["Slot 2"]));
459Assert.Equal(JsonConvert.SerializeObject(pfi[3]), JsonConvert.SerializeObject(pfiDict["Slot 3"]));
460Assert.Equal(JsonConvert.SerializeObject(pfi[4]), JsonConvert.SerializeObject(pfiDict["Slot 4"]));
461Assert.Equal(JsonConvert.SerializeObject(pfi[5]), JsonConvert.SerializeObject(pfiDict["X3Important"]));
562Assert.Equal(JsonConvert.SerializeObject(pfi[0]), JsonConvert.SerializeObject(pfiDict["X1"]));
563Assert.Equal(JsonConvert.SerializeObject(pfi[1]), JsonConvert.SerializeObject(pfiDict["X2Important"]));
564Assert.Equal(JsonConvert.SerializeObject(pfi[2]), JsonConvert.SerializeObject(pfiDict["X3"]));
565Assert.Equal(JsonConvert.SerializeObject(pfi[3]), JsonConvert.SerializeObject(pfiDict["X4Rand"]));
637Assert.Equal(JsonConvert.SerializeObject(pfi[0]), JsonConvert.SerializeObject(pfiDict["X1"]));
638Assert.Equal(JsonConvert.SerializeObject(pfi[1]), JsonConvert.SerializeObject(pfiDict["Slot 1"]));
639Assert.Equal(JsonConvert.SerializeObject(pfi[2]), JsonConvert.SerializeObject(pfiDict["Slot 2"]));
640Assert.Equal(JsonConvert.SerializeObject(pfi[3]), JsonConvert.SerializeObject(pfiDict["Slot 3"]));
641Assert.Equal(JsonConvert.SerializeObject(pfi[4]), JsonConvert.SerializeObject(pfiDict["Slot 4"]));
642Assert.Equal(JsonConvert.SerializeObject(pfi[5]), JsonConvert.SerializeObject(pfiDict["X3Important"]));
715Assert.Equal(JsonConvert.SerializeObject(pfi[0]), JsonConvert.SerializeObject(pfiDict["X1"]));
716Assert.Equal(JsonConvert.SerializeObject(pfi[1]), JsonConvert.SerializeObject(pfiDict["X2Important"]));
717Assert.Equal(JsonConvert.SerializeObject(pfi[2]), JsonConvert.SerializeObject(pfiDict["X3"]));
718Assert.Equal(JsonConvert.SerializeObject(pfi[3]), JsonConvert.SerializeObject(pfiDict["X4Rand"]));
784Assert.Equal(JsonConvert.SerializeObject(pfi[0]), JsonConvert.SerializeObject(pfiDict["X1"]));
785Assert.Equal(JsonConvert.SerializeObject(pfi[1]), JsonConvert.SerializeObject(pfiDict["Slot 1"]));
786Assert.Equal(JsonConvert.SerializeObject(pfi[2]), JsonConvert.SerializeObject(pfiDict["Slot 2"]));
787Assert.Equal(JsonConvert.SerializeObject(pfi[3]), JsonConvert.SerializeObject(pfiDict["Slot 3"]));
788Assert.Equal(JsonConvert.SerializeObject(pfi[4]), JsonConvert.SerializeObject(pfiDict["Slot 4"]));
789Assert.Equal(JsonConvert.SerializeObject(pfi[5]), JsonConvert.SerializeObject(pfiDict["X3Important"]));
Microsoft.VisualStudio.LanguageServices (5)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (9)
MSBuild (1)
Roslyn.VisualStudio.Next.UnitTests (3)
System.Collections.Immutable (1)