1 write to Outputs
Microsoft.CodeAnalysis (1)
SourceGeneration\IncrementalGeneratorRunStep.cs (1)
22Outputs = outputs;
686 references to Outputs
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (481)
SourceGeneration\GeneratorDriverTests.cs (108)
1645source => Assert.Equal(IncrementalStepRunReason.New, source.Source.Outputs[source.OutputIndex].Reason)); 1646Assert.Collection(step.Outputs, 1657source => Assert.Equal(IncrementalStepRunReason.Cached, source.Source.Outputs[source.OutputIndex].Reason)); 1658Assert.Collection(step.Outputs, 1696Assert.Equal(compilation, source.Source.Outputs[source.OutputIndex].Value); 1697Assert.Equal(IncrementalStepRunReason.New, source.Source.Outputs[source.OutputIndex].Reason); 1699Assert.Collection(step.Outputs, 1712Assert.Equal(text1, source.Source.Outputs[source.OutputIndex].Value); 1713Assert.Equal(IncrementalStepRunReason.New, source.Source.Outputs[source.OutputIndex].Reason); 1715Assert.Collection(step.Outputs, 1734Assert.Equal(compilation, source.Source.Outputs[source.OutputIndex].Value); 1735Assert.Equal(IncrementalStepRunReason.Cached, source.Source.Outputs[source.OutputIndex].Reason); 1737Assert.Collection(step.Outputs, 1750Assert.Equal(text1, source.Source.Outputs[source.OutputIndex].Value); 1751Assert.Equal(IncrementalStepRunReason.Cached, source.Source.Outputs[source.OutputIndex].Reason); 1753Assert.Collection(step.Outputs, 1765Assert.Equal(text2, source.Source.Outputs[source.OutputIndex].Value); 1766Assert.Equal(IncrementalStepRunReason.New, source.Source.Outputs[source.OutputIndex].Reason); 1768Assert.Collection(step.Outputs, 1787Assert.Equal(newCompilation, source.Source.Outputs[source.OutputIndex].Value); 1788Assert.Equal(IncrementalStepRunReason.Modified, source.Source.Outputs[source.OutputIndex].Reason); 1790Assert.Collection(step.Outputs, 1803Assert.Equal(text1, source.Source.Outputs[source.OutputIndex].Value); 1804Assert.Equal(IncrementalStepRunReason.Cached, source.Source.Outputs[source.OutputIndex].Reason); 1806Assert.Collection(step.Outputs, 1818Assert.Equal(text2, source.Source.Outputs[source.OutputIndex].Value); 1819Assert.Equal(IncrementalStepRunReason.Cached, source.Source.Outputs[source.OutputIndex].Reason); 1821Assert.Collection(step.Outputs, 1839Assert.Equal(newCompilation, source.Source.Outputs[source.OutputIndex].Value); 1840Assert.Equal(IncrementalStepRunReason.Cached, source.Source.Outputs[source.OutputIndex].Reason); 1842Assert.Collection(step.Outputs, 1855Assert.Equal(text1, source.Source.Outputs[source.OutputIndex].Value); 1856Assert.Equal(IncrementalStepRunReason.Cached, source.Source.Outputs[source.OutputIndex].Reason); 1858Assert.Collection(step.Outputs, 1870Assert.Equal(text2, source.Source.Outputs[source.OutputIndex].Value); 1871Assert.Equal(IncrementalStepRunReason.Cached, source.Source.Outputs[source.OutputIndex].Reason); 1873Assert.Collection(step.Outputs, 1956Assert.Equal(compilation, source.Source.Outputs[source.OutputIndex].Value); 1957Assert.Equal(IncrementalStepRunReason.New, source.Source.Outputs[source.OutputIndex].Reason); 1961Assert.Equal(texts[0], ((ImmutableArray<AdditionalText>)source.Source.Outputs[source.OutputIndex].Value)[0]); 1962Assert.Equal(IncrementalStepRunReason.New, source.Source.Outputs[source.OutputIndex].Reason); 1964Assert.Collection(step.Outputs, 1985Assert.Equal(compilation, source.Source.Outputs[source.OutputIndex].Value); 1986Assert.Equal(IncrementalStepRunReason.Cached, source.Source.Outputs[source.OutputIndex].Reason); 1990Assert.Empty((ImmutableArray<AdditionalText>)source.Source.Outputs[source.OutputIndex].Value); 1991Assert.Equal(IncrementalStepRunReason.Modified, source.Source.Outputs[source.OutputIndex].Reason); 1993Assert.Collection(step.Outputs, 2011var value = ((Compilation, ImmutableArray<AdditionalText>))source.Source.Outputs[source.OutputIndex].Value; 2014Assert.Equal(IncrementalStepRunReason.Unchanged, source.Source.Outputs[source.OutputIndex].Reason); 2016Assert.Collection(step.Outputs, 2037Assert.Equal(newCompilation, source.Source.Outputs[source.OutputIndex].Value); 2038Assert.Equal(IncrementalStepRunReason.Modified, source.Source.Outputs[source.OutputIndex].Reason); 2042Assert.Empty((ImmutableArray<AdditionalText>)source.Source.Outputs[source.OutputIndex].Value); 2043Assert.Equal(IncrementalStepRunReason.Unchanged, source.Source.Outputs[source.OutputIndex].Reason); 2045Assert.Collection(step.Outputs, 2120Assert.Equal("C", ((ClassDeclarationSyntax)step.Outputs[0].Value).Identifier.ValueText); 2121Assert.Equal(IncrementalStepRunReason.New, step.Outputs[0].Reason); 2125Assert.Equal("D", ((ClassDeclarationSyntax)step.Outputs[0].Value).Identifier.ValueText); 2126Assert.Equal(IncrementalStepRunReason.New, step.Outputs[0].Reason); 2136Assert.Equal("C", ((ClassDeclarationSyntax)step.Outputs[0].Value).Identifier.ValueText); 2137Assert.Equal(IncrementalStepRunReason.Cached, step.Outputs[0].Reason); 2141Assert.Equal("D", ((ClassDeclarationSyntax)step.Outputs[0].Value).Identifier.ValueText); 2142Assert.Equal(IncrementalStepRunReason.Cached, step.Outputs[0].Reason); 2153Assert.Equal("E", ((ClassDeclarationSyntax)step.Outputs[0].Value).Identifier.ValueText); 2154Assert.Equal(IncrementalStepRunReason.Modified, step.Outputs[0].Reason); 2158Assert.Equal("D", ((ClassDeclarationSyntax)step.Outputs[0].Value).Identifier.ValueText); 2159Assert.Equal(IncrementalStepRunReason.Cached, step.Outputs[0].Reason); 2213var output = runResult.TrackedSteps["ParseOptions"][0].Outputs[0].Value; 2222Assert.Equal(IncrementalStepRunReason.Cached, step.Outputs[0].Reason); 2233output = runResult.TrackedSteps["ParseOptions"][0].Outputs[0].Value; 2242Assert.Equal(IncrementalStepRunReason.Cached, step.Outputs[0].Reason); 2346Assert.Collection(step.Outputs, 2362Assert.Collection(step.Outputs, 2384Assert.Collection(step.Outputs, 2426var consumedInput = input.Source.Outputs[input.OutputIndex]; 2430Assert.Collection(step.Outputs, 2442var consumedInput = input.Source.Outputs[input.OutputIndex]; 2446Assert.Collection(step.Outputs, 2458var consumedInput = input.Source.Outputs[input.OutputIndex]; 2462Assert.Collection(step.Outputs, 2479var consumedInput = input.Source.Outputs[input.OutputIndex]; 2483Assert.Collection(step.Outputs, 2495var consumedInput = input.Source.Outputs[input.OutputIndex]; 2499Assert.Collection(step.Outputs, 2511var consumedInput = input.Source.Outputs[input.OutputIndex]; 2515Assert.Collection(step.Outputs, 2535var consumedInput = input.Source.Outputs[input.OutputIndex]; 2539Assert.Collection(step.Outputs, 2551var consumedInput = input.Source.Outputs[input.OutputIndex]; 2555Assert.Collection(step.Outputs, 2567var consumedInput = input.Source.Outputs[input.OutputIndex]; 2571Assert.Collection(step.Outputs, 2616var consumedInput = input.Source.Outputs[input.OutputIndex]; 2620Assert.Collection(step.Outputs, 2633var consumedInput = input.Source.Outputs[input.OutputIndex]; 2637Assert.Collection(step.Outputs, 2654var consumedInput = input.Source.Outputs[input.OutputIndex]; 2658Assert.Collection(step.Outputs, 2671var consumedInput = input.Source.Outputs[input.OutputIndex]; 2675Assert.Collection(step.Outputs, 2696var consumedInput = input.Source.Outputs[input.OutputIndex]; 2700Assert.Collection(step.Outputs, 2713var consumedInput = input.Source.Outputs[input.OutputIndex]; 2717Assert.Collection(step.Outputs, 2738var consumedInput = input.Source.Outputs[input.OutputIndex]; 2742Assert.Collection(step.Outputs, 2755var consumedInput = input.Source.Outputs[input.OutputIndex]; 2759Assert.Collection(step.Outputs,
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.cs (113)
83step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C1" })); 162step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C2" })); 192step => Assert.True(step.Outputs.Single().Value is CompilationUnitSyntax c && c.SyntaxTree == compilation.SyntaxTrees.Single())); 222step => Assert.True(step.Outputs.Single().Value is CompilationUnitSyntax c && c.SyntaxTree == compilation.SyntaxTrees.Single())); 249step => Assert.True(step.Outputs.Single().Value is CompilationUnitSyntax c && c.SyntaxTree == compilation.SyntaxTrees.First())); 276step => Assert.True(step.Outputs.Single().Value is CompilationUnitSyntax c && c.SyntaxTree == compilation.SyntaxTrees.Last())); 304step => Assert.True(step.Outputs.Single().Value is CompilationUnitSyntax c && c.SyntaxTree == compilation.SyntaxTrees.First()), 305step => Assert.True(step.Outputs.Single().Value is CompilationUnitSyntax c && c.SyntaxTree == compilation.SyntaxTrees.Last())); 335step => Assert.True(step.Outputs.Single().Value is LocalFunctionStatementSyntax { Identifier.ValueText: "LocalFunc" })); 371step => Assert.True(step.Outputs.Single().Value is LocalFunctionStatementSyntax { Identifier.ValueText: "LocalFunc" })); 410step => Assert.True(step.Outputs.Single().Value is LocalFunctionStatementSyntax { Identifier.ValueText: "LocalFunc" })); 439step => Assert.True(step.Outputs.Single().Value is TypeParameterSyntax { Identifier.ValueText: "T" })); 472step => Assert.True(step.Outputs.Single().Value is MethodDeclarationSyntax { Identifier.ValueText: "M" })); 505step => Assert.True(step.Outputs.Single().Value is MethodDeclarationSyntax { Identifier.ValueText: "M" })); 537step => Assert.True(step.Outputs.Single().Value is MethodDeclarationSyntax { Identifier.ValueText: "M", Body: null, ExpressionBody: null })); 569step => Assert.True(step.Outputs.Single().Value is MethodDeclarationSyntax { Identifier.ValueText: "M", Body: not null })); 600step => Assert.True(step.Outputs.Single().Value is VariableDeclaratorSyntax { Identifier.ValueText: "m" })); 631step => Assert.Collection(step.Outputs, 664step => Assert.True(step.Outputs.Single().Value is VariableDeclaratorSyntax { Identifier.ValueText: "m" })); 695step => Assert.Collection(step.Outputs, 724step => Assert.True(step.Outputs.Single().Value is LambdaExpressionSyntax)); 758step => Assert.True(step.Outputs.Single().Value is AccessorDeclarationSyntax { RawKind: (int)SyntaxKind.GetAccessorDeclaration })); 787step => Assert.True(step.Outputs.Single().Value is TypeParameterSyntax { Identifier.ValueText: "T" })); 824step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C1" })); 861step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C2" })); 898step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C1" })); 935step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C2" })); 1043step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 1080step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 1118step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 1156step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 1194step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 1232step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 1269step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 1276step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 1279Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1280Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1281Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1282Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs.Single().Reason); 1283Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1284Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["result_ForAttributeInternal"].Single().Outputs.Single().Reason); 1285Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationAndGroupedNodes_ForAttributeWithMetadataName"].Single().Outputs.Single().Reason); 1286Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["result_ForAttributeWithMetadataName"].Single().Outputs.Single().Reason); 1316step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 1323step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 1326Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1327Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1328Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1329Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs.Single().Reason); 1330Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1331Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["result_ForAttributeInternal"].Single().Outputs.Single().Reason); 1332Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["compilationAndGroupedNodes_ForAttributeWithMetadataName"].Single().Outputs.Single().Reason); 1333Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["result_ForAttributeWithMetadataName"].Single().Outputs.Single().Reason); 1363step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 1369step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 1372Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1373Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1374Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1375Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs, 1377Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1378Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["result_ForAttributeInternal"].Single().Outputs.Single().Reason); 1379Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["compilationAndGroupedNodes_ForAttributeWithMetadataName"].Single().Outputs.Single().Reason); 1380Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["result_ForAttributeWithMetadataName"].Single().Outputs.Single().Reason); 1414step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 1417Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1418Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1419Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1420Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs, 1422Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1423Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["result_ForAttributeInternal"].Single().Outputs.Single().Reason); 1424Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["compilationAndGroupedNodes_ForAttributeWithMetadataName"].Single().Outputs.Single().Reason); 1425Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["result_ForAttributeWithMetadataName"].Single().Outputs.Single().Reason); 1461step => Assert.Collection(step.Outputs, 1466Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1467Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1468Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1469Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs, 1471Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1472Assert.Collection(runResult.TrackedSteps["result_ForAttributeInternal"].Single().Outputs, 1474Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["compilationAndGroupedNodes_ForAttributeWithMetadataName"].Single().Outputs.Single().Reason); 1475Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"].Single().Outputs, 1513step => Assert.Collection(step.Outputs, t => Assert.True(t.Value is ClassDeclarationSyntax { Identifier.ValueText: "C1" })), 1514step => Assert.Collection(step.Outputs, t => Assert.True(t.Value is ClassDeclarationSyntax { Identifier.ValueText: "C2" }))); 1517Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1518Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1519Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1520Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs, 1524s => Assert.Equal(IncrementalStepRunReason.Cached, s.Outputs.Single().Reason), 1525s => Assert.Equal(IncrementalStepRunReason.Cached, s.Outputs.Single().Reason)); 1527s => Assert.Equal(IncrementalStepRunReason.Cached, s.Outputs.Single().Reason), 1528s => Assert.Equal(IncrementalStepRunReason.Cached, s.Outputs.Single().Reason)); 1530s => Assert.Equal(IncrementalStepRunReason.Modified, s.Outputs.Single().Reason), 1531s => Assert.Equal(IncrementalStepRunReason.Modified, s.Outputs.Single().Reason)); 1533s => Assert.Equal(IncrementalStepRunReason.Modified, s.Outputs.Single().Reason), 1534s => Assert.Equal(IncrementalStepRunReason.Modified, s.Outputs.Single().Reason)); 1577step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 1580Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1581Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1582Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1583Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs.Single().Reason); 1584Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1585Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["result_ForAttributeInternal"].Single().Outputs.Single().Reason); 1586Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["compilationAndGroupedNodes_ForAttributeWithMetadataName"].Single().Outputs.Single().Reason); 1587Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["result_ForAttributeWithMetadataName"].Single().Outputs.Single().Reason); 1625step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 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.New, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1634Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["result_ForAttributeInternal"].Single().Outputs.Single().Reason); 1635Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["compilationAndGroupedNodes_ForAttributeWithMetadataName"].Single().Outputs.Single().Reason); 1636Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["result_ForAttributeWithMetadataName"].Single().Outputs.Single().Reason);
SourceGeneration\GeneratorDriverTests_Attributes_SimpleName.cs (125)
56step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 88step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 164step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 194Assert.True(step.Outputs.First().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }); 195Assert.True(step.Outputs.Last().Value is ClassDeclarationSyntax { Identifier.ValueText: "D" }); 226Assert.True(step.Outputs.First().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }); 227Assert.False(step.Outputs.Any(o => o.Value is ClassDeclarationSyntax { Identifier.ValueText: "D" })); 258Assert.False(step.Outputs.Any(o => o.Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 259Assert.True(step.Outputs.Last().Value is ClassDeclarationSyntax { Identifier.ValueText: "D" }); 292Assert.True(step.Outputs.First().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }); 293Assert.True(step.Outputs.Last().Value is ClassDeclarationSyntax { Identifier.ValueText: "D" }); 323step => Assert.True(step.Outputs.First().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 349step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 375step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 401step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 434step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 462step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 548step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 581step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 613step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 812step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 843step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 873step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 958step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 987step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 1019step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 1026step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 1029Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1030Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1031Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs.Single().Reason); 1032Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1033Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["result_ForAttribute"].Single().Outputs.Single().Reason); 1059step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 1066step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 1069Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1070Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1071Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs.Single().Reason); 1072Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1073Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["result_ForAttribute"].Single().Outputs.Single().Reason); 1103step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 1110s => Assert.Equal(IncrementalStepRunReason.Cached, s.Outputs.Single().Reason), 1111s => Assert.Equal(IncrementalStepRunReason.Cached, s.Outputs.Single().Reason)); 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); 1154step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 1164s => Assert.Equal(IncrementalStepRunReason.Cached, s.Outputs.Single().Reason), 1165s => Assert.Equal(IncrementalStepRunReason.Cached, s.Outputs.Single().Reason)); 1166Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1167Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1169Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs, 1173Assert.Equal(IncrementalStepRunReason.Removed, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1174Assert.Equal(IncrementalStepRunReason.Removed, runResult.TrackedSteps["result_ForAttribute"].Single().Outputs.Single().Reason); 1213s => Assert.Equal(IncrementalStepRunReason.Cached, s.Outputs.Single().Reason), 1214s => Assert.Equal(IncrementalStepRunReason.Cached, s.Outputs.Single().Reason)); 1215Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1216Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1218Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs, 1222Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1223Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["result_ForAttribute"].Single().Outputs.Single().Reason); 1226step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 1256step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 1267s => Assert.Equal(IncrementalStepRunReason.Unchanged, s.Outputs.Single().Reason), 1268s => Assert.Equal(IncrementalStepRunReason.Cached, s.Outputs.Single().Reason)); 1269Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1270Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1272Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs, 1276Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1277Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["result_ForAttribute"].Single().Outputs.Single().Reason); 1307step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 1351step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 1358step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 1361s => Assert.Equal(IncrementalStepRunReason.Cached, s.Outputs.Single().Reason), 1362s => Assert.Equal(IncrementalStepRunReason.Cached, s.Outputs.Single().Reason)); 1363Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1364Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1366Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs, 1370Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1371Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["result_ForAttribute"].Single().Outputs.Single().Reason); 1405s => Assert.Equal(IncrementalStepRunReason.Cached, s.Outputs.Single().Reason), 1406s => Assert.Equal(IncrementalStepRunReason.New, s.Outputs.Single().Reason)); 1407Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1408Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1410Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs, 1414Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1415Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["result_ForAttribute"].Single().Outputs.Single().Reason); 1418step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 1449s => Assert.Equal(IncrementalStepRunReason.New, s.Outputs.Single().Reason)); 1450Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1451Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1453Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs, 1456Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1457Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["result_ForAttribute"].Single().Outputs.Single().Reason); 1460step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 1490step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 1498s => Assert.Equal(IncrementalStepRunReason.Cached, s.Outputs.Single().Reason), 1499s => Assert.Equal(IncrementalStepRunReason.Cached, s.Outputs.Single().Reason)); 1500Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1501Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1503Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs, 1507Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1508Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["result_ForAttribute"].Single().Outputs.Single().Reason); 1538step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 1547s => Assert.Equal(IncrementalStepRunReason.Cached, s.Outputs.Single().Reason), 1548s => Assert.Equal(IncrementalStepRunReason.Cached, s.Outputs.Single().Reason)); 1549Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1550Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1552Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs, 1558s => Assert.Equal(IncrementalStepRunReason.Cached, s.Outputs.Single().Reason), 1559s => Assert.Equal(IncrementalStepRunReason.New, s.Outputs.Single().Reason)); 1561s => Assert.Equal(IncrementalStepRunReason.Cached, s.Outputs.Single().Reason), 1562s => Assert.Equal(IncrementalStepRunReason.New, s.Outputs.Single().Reason)); 1565step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }), 1566step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "D" })); 1596step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" })); 1606s => Assert.Equal(IncrementalStepRunReason.Cached, s.Outputs.Single().Reason), 1607s => Assert.Equal(IncrementalStepRunReason.Cached, s.Outputs.Single().Reason)); 1608Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1609Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1611Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs, 1615Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason); 1616Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["result_ForAttribute"].Single().Outputs.Single().Reason); 1619step => Assert.True(step.Outputs.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "D" }));
SourceGeneration\StateTableTests.cs (69)
387Assert.Equal(1, source.Source.Outputs[source.OutputIndex].Value); 388Assert.Equal(IncrementalStepRunReason.New, source.Source.Outputs[source.OutputIndex].Reason); 393Assert.Equal(2, source.Source.Outputs[source.OutputIndex].Value); 394Assert.Equal(IncrementalStepRunReason.New, source.Source.Outputs[source.OutputIndex].Reason); 399Assert.Equal(3, source.Source.Outputs[source.OutputIndex].Value); 400Assert.Equal(IncrementalStepRunReason.New, source.Source.Outputs[source.OutputIndex].Reason); 402Assert.Collection(step.Outputs, 450Assert.Equal(1, source.Source.Outputs[source.OutputIndex].Value); 451Assert.Equal(IncrementalStepRunReason.Cached, source.Source.Outputs[source.OutputIndex].Reason); 456Assert.Equal(2, source.Source.Outputs[source.OutputIndex].Value); 457Assert.Equal(IncrementalStepRunReason.Cached, source.Source.Outputs[source.OutputIndex].Reason); 462Assert.Equal(3, source.Source.Outputs[source.OutputIndex].Value); 463Assert.Equal(IncrementalStepRunReason.Cached, source.Source.Outputs[source.OutputIndex].Reason); 465Assert.Collection(step.Outputs, 497Assert.Equal(1, source.Source.Outputs[source.OutputIndex].Value); 498Assert.Equal(IncrementalStepRunReason.Cached, source.Source.Outputs[source.OutputIndex].Reason); 503Assert.Equal(2, source.Source.Outputs[source.OutputIndex].Value); 504Assert.Equal(IncrementalStepRunReason.Cached, source.Source.Outputs[source.OutputIndex].Reason); 509Assert.Equal(3, source.Source.Outputs[source.OutputIndex].Value); 510Assert.Equal(IncrementalStepRunReason.Removed, source.Source.Outputs[source.OutputIndex].Reason); 512Assert.Collection(step.Outputs, 564Assert.Equal(1, source.Source.Outputs[source.OutputIndex].Value); 565Assert.Equal(IncrementalStepRunReason.Cached, source.Source.Outputs[source.OutputIndex].Reason); 570Assert.Equal(2, source.Source.Outputs[source.OutputIndex].Value); 571Assert.Equal(IncrementalStepRunReason.Cached, source.Source.Outputs[source.OutputIndex].Reason); 576Assert.Equal(4, source.Source.Outputs[source.OutputIndex].Value); 577Assert.Equal(IncrementalStepRunReason.Modified, source.Source.Outputs[source.OutputIndex].Reason); 579Assert.Collection(step.Outputs, 607Assert.Equal(1, source.Source.Outputs[source.OutputIndex].Value); 608Assert.Equal(IncrementalStepRunReason.New, source.Source.Outputs[source.OutputIndex].Reason); 610Assert.Collection(step.Outputs, 642Assert.Equal(1, source.Source.Outputs[source.OutputIndex].Value); 643Assert.Equal(IncrementalStepRunReason.Cached, source.Source.Outputs[source.OutputIndex].Reason); 645Assert.Collection(step.Outputs, 680Assert.Equal(value, source.Source.Outputs[source.OutputIndex].Value); 681Assert.Equal(IncrementalStepRunReason.Modified, source.Source.Outputs[source.OutputIndex].Reason); 683Assert.Collection(step.Outputs, 719Assert.Equal(value, source.Source.Outputs[source.OutputIndex].Value); 720Assert.Equal(IncrementalStepRunReason.Modified, source.Source.Outputs[source.OutputIndex].Reason); 722Assert.Collection(step.Outputs, 755Assert.Equal((1, IncrementalStepRunReason.Cached), Assert.Single(step.Outputs)); 760Assert.Equal((2, IncrementalStepRunReason.Removed), Assert.Single(step.Outputs)); 765Assert.Equal((3, IncrementalStepRunReason.Removed), Assert.Single(step.Outputs)); 770Assert.Equal((4, IncrementalStepRunReason.New), Assert.Single(step.Outputs)); 775Assert.Equal((5, IncrementalStepRunReason.New), Assert.Single(step.Outputs)); 780Assert.Equal((6, IncrementalStepRunReason.New), Assert.Single(step.Outputs)); 805Assert.Collection(step.Outputs, output => Assert.Equal((1, IncrementalStepRunReason.Cached), output)), 807Assert.Collection(step.Outputs, output => Assert.Equal((2, IncrementalStepRunReason.Removed), output)), 809Assert.Collection(step.Outputs, output => Assert.Equal((3, IncrementalStepRunReason.Removed), output)), 811Assert.Collection(step.Outputs, output => Assert.Equal((4, IncrementalStepRunReason.New), output)), 813Assert.Collection(step.Outputs, output => Assert.Equal((5, IncrementalStepRunReason.New), output)), 815Assert.Collection(step.Outputs, output => Assert.Equal((6, IncrementalStepRunReason.New), output))); 842Assert.Equal(IncrementalStepRunReason.Cached, step.Inputs[0].Source.Outputs[step.Inputs[0].OutputIndex].Reason); 843Assert.Collection(step.Outputs, output => Assert.Equal(((1, 0), IncrementalStepRunReason.Cached), output)); 848Assert.Equal(IncrementalStepRunReason.Removed, step.Inputs[0].Source.Outputs[step.Inputs[0].OutputIndex].Reason); 849Assert.Collection(step.Outputs, output => Assert.Equal(((2, 0), IncrementalStepRunReason.Removed), output)); 854Assert.Equal(IncrementalStepRunReason.Removed, step.Inputs[0].Source.Outputs[step.Inputs[0].OutputIndex].Reason); 855Assert.Collection(step.Outputs, output => Assert.Equal(((3, 0), IncrementalStepRunReason.Removed), output)); 860Assert.Equal(IncrementalStepRunReason.New, step.Inputs[0].Source.Outputs[step.Inputs[0].OutputIndex].Reason); 861Assert.Collection(step.Outputs, output => Assert.Equal(((4, 0), IncrementalStepRunReason.New), output)); 866Assert.Equal(IncrementalStepRunReason.New, step.Inputs[0].Source.Outputs[step.Inputs[0].OutputIndex].Reason); 867Assert.Collection(step.Outputs, output => Assert.Equal(((5, 0), IncrementalStepRunReason.New), output)); 872Assert.Equal(IncrementalStepRunReason.New, step.Inputs[0].Source.Outputs[step.Inputs[0].OutputIndex].Reason); 873Assert.Collection(step.Outputs, output => Assert.Equal(((6, 0), IncrementalStepRunReason.New), output)); 925Assert.Equal(thirdValue, (int)transformNodeStep.Outputs[2].Value); 949Assert.Equal(IncrementalStepRunReason.Modified, input.Source.Outputs[input.OutputIndex].Reason); 951Assert.All(step.Outputs, output => 978Assert.Equal(IncrementalStepRunReason.Modified, input.Source.Outputs[input.OutputIndex].Reason); 980Assert.All(step.Outputs, output =>
SourceGeneration\SyntaxAwareGeneratorTests.cs (66)
1042step => Assert.Collection(step.Outputs, 1044step => Assert.Collection(step.Outputs, 1046step => Assert.Collection(step.Outputs, 1062step => Assert.Collection(step.Outputs, 1064step => Assert.Collection(step.Outputs, 1066step => Assert.Collection(step.Outputs, 1068step => Assert.Collection(step.Outputs, 1070step => Assert.Collection(step.Outputs, 1119step => Assert.Collection(step.Outputs, 1121step => Assert.Collection(step.Outputs, 1123step => Assert.Collection(step.Outputs, 1125step => Assert.Collection(step.Outputs, 1127step => Assert.Collection(step.Outputs, 1141step => Assert.Collection(step.Outputs, 1143step => Assert.Collection(step.Outputs, 1145step => Assert.Collection(step.Outputs, 1147step => Assert.Collection(step.Outputs, 1149step => Assert.Collection(step.Outputs, 1249step => Assert.Collection(step.Outputs, 1251step => Assert.Collection(step.Outputs, 1253step => Assert.Collection(step.Outputs, 1278step => Assert.Collection(step.Outputs, 1280step => Assert.Collection(step.Outputs, 1282step => Assert.Collection(step.Outputs, 1420step => Assert.Collection(step.Outputs, 1422step => Assert.Collection(step.Outputs, 1424step => Assert.Collection(step.Outputs, 1450step => Assert.Collection(step.Outputs, 1452step => Assert.Collection(step.Outputs, 1454step => Assert.Collection(step.Outputs, 1457step => Assert.Collection(step.Outputs, 1459step => Assert.Collection(step.Outputs, 1461step => Assert.Collection(step.Outputs, 1483step => Assert.Collection(step.Outputs, 1485step => Assert.Collection(step.Outputs, 1487step => Assert.Collection(step.Outputs, 1534step => Assert.Collection(step.Outputs, 1536step => Assert.Collection(step.Outputs, 1538step => Assert.Collection(step.Outputs, 1549step => Assert.Collection(step.Outputs, 1551step => Assert.Collection(step.Outputs, 1553step => Assert.Collection(step.Outputs, 1705step => Assert.Collection(step.Outputs, 1707step => Assert.Collection(step.Outputs, 1709step => Assert.Collection(step.Outputs, 1712step => Assert.Collection(step.Outputs, 1714step => Assert.Collection(step.Outputs, 1716step => Assert.Collection(step.Outputs, 1718step => Assert.Collection(step.Outputs, 1720step => Assert.Collection(step.Outputs, 1722step => Assert.Collection(step.Outputs, 1764step => Assert.Collection(step.Outputs, 1766step => Assert.Collection(step.Outputs, 1768step => Assert.Collection(step.Outputs, 1771step => Assert.Collection(step.Outputs, 1773step => Assert.Collection(step.Outputs, 1775step => Assert.Collection(step.Outputs, 1818step => Assert.Collection(step.Outputs, 1820step => Assert.Collection(step.Outputs, 1822step => Assert.Collection(step.Outputs, 1824step => Assert.Collection(step.Outputs, 1826step => Assert.Collection(step.Outputs, 1828step => Assert.Collection(step.Outputs, 1831step => Assert.Collection(step.Outputs, 1833step => Assert.Collection(step.Outputs, 1835step => Assert.Collection(step.Outputs,
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (197)
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.vb (99)
89Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C1"))) 130Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C2"))) 201Sub(_step) Assert.True(DirectCast(_step.Outputs.Single().Value, CompilationUnitSyntax).SyntaxTree Is compilation.SyntaxTrees.First)) 230Sub(_step) Assert.True(DirectCast(_step.Outputs.Single().Value, CompilationUnitSyntax).SyntaxTree Is compilation.SyntaxTrees.First)) 256Sub(_step) Assert.True(DirectCast(_step.Outputs.Single().Value, CompilationUnitSyntax).SyntaxTree Is compilation.SyntaxTrees.First), 257Sub(_step) Assert.True(DirectCast(_step.Outputs.Single().Value, CompilationUnitSyntax).SyntaxTree Is compilation.SyntaxTrees.Last)) 287Sub(_step) Assert.True(DirectCast(_step.Outputs.Single().Value, MethodStatementSyntax).Identifier.ValueText = "M")) 316Sub(_step) Assert.True(DirectCast(_step.Outputs.Single().Value, MethodStatementSyntax).Identifier.ValueText = "M")) 345Sub(_step) Assert.True(DirectCast(_step.Outputs.Single().Value, ModifiedIdentifierSyntax).Identifier.ValueText = "a")) 374Sub(_step) Assert.Collection(_step.Outputs, 405Sub(_step) Assert.Collection(_step.Outputs, 448Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C1"))) 489Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C2"))) 683Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 720Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 757Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 794Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 831Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 868Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 904Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 911Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 914Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps("collectedGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 915Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("compilationGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 916Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("allUpGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 917Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("compilationUnit_ForAttribute").Single().Outputs.Single().Reason) 918Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("compilationUnitAndGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 919Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("result_ForAttributeInternal").Single().Outputs.Single().Reason) 920Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("compilationAndGroupedNodes_ForAttributeWithMetadataName").Single().Outputs.Single().Reason) 921Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("result_ForAttributeWithMetadataName").Single().Outputs.Single().Reason) 951Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 958Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 961Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps("collectedGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 962Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("compilationGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 963Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("allUpGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 964Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps("compilationUnit_ForAttribute").Single().Outputs.Single().Reason) 965Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("compilationUnitAndGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 966Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("result_ForAttributeInternal").Single().Outputs.Single().Reason) 967Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps("compilationAndGroupedNodes_ForAttributeWithMetadataName").Single().Outputs.Single().Reason) 968Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps("result_ForAttributeWithMetadataName").Single().Outputs.Single().Reason) 998Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 1004Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 1007Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps("collectedGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1008Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("compilationGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1009Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("allUpGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1010Assert.Collection(runResult.TrackedSteps("compilationUnit_ForAttribute").Single().Outputs, 1012Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("compilationUnitAndGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1013Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("result_ForAttributeInternal").Single().Outputs.Single().Reason) 1014Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps("compilationAndGroupedNodes_ForAttributeWithMetadataName").Single().Outputs.Single().Reason) 1015Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps("result_ForAttributeWithMetadataName").Single().Outputs.Single().Reason) 1050Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 1053Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps("collectedGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1054Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("compilationGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1055Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("allUpGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1056Assert.Collection(runResult.TrackedSteps("compilationUnit_ForAttribute").Single().Outputs, 1058Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("compilationUnitAndGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1059Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("result_ForAttributeInternal").Single().Outputs.Single().Reason) 1060Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps("compilationAndGroupedNodes_ForAttributeWithMetadataName").Single().Outputs.Single().Reason) 1061Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps("result_ForAttributeWithMetadataName").Single().Outputs.Single().Reason) 1098Sub(_step) Assert.Collection(_step.Outputs, 1103Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps("collectedGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1104Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("compilationGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1105Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("allUpGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1106Assert.Collection(runResult.TrackedSteps("compilationUnit_ForAttribute").Single().Outputs, 1108Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("compilationUnitAndGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1109Assert.Collection(runResult.TrackedSteps("result_ForAttributeInternal").Single().Outputs, 1111Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps("compilationAndGroupedNodes_ForAttributeWithMetadataName").Single().Outputs.Single().Reason) 1112Assert.Collection(runResult.TrackedSteps("result_ForAttributeWithMetadataName").Single().Outputs, 1151Sub(_step) Assert.Collection(_step.Outputs, Sub(t) Assert.True(IsClassStatementWithName(t.Value, "C1"))), 1152Sub(_step) Assert.Collection(_step.Outputs, Sub(t) Assert.True(IsClassStatementWithName(t.Value, "C2")))) 1155Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps("collectedGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1156Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("compilationGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1157Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("allUpGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1158Assert.Collection(runResult.TrackedSteps("compilationUnit_ForAttribute").Single().Outputs, 1162Sub(s) Assert.Equal(IncrementalStepRunReason.Cached, s.Outputs.Single().Reason), 1163Sub(s) Assert.Equal(IncrementalStepRunReason.Cached, s.Outputs.Single().Reason)) 1165Sub(s) Assert.Equal(IncrementalStepRunReason.Cached, s.Outputs.Single().Reason), 1166Sub(s) Assert.Equal(IncrementalStepRunReason.Cached, s.Outputs.Single().Reason)) 1168Sub(s) Assert.Equal(IncrementalStepRunReason.Modified, s.Outputs.Single().Reason), 1169Sub(s) Assert.Equal(IncrementalStepRunReason.Modified, s.Outputs.Single().Reason)) 1171Sub(s) Assert.Equal(IncrementalStepRunReason.Modified, s.Outputs.Single().Reason), 1172Sub(s) Assert.Equal(IncrementalStepRunReason.Modified, s.Outputs.Single().Reason)) 1217Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 1220Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps("collectedGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1221Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("compilationGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1222Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("allUpGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1223Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps("compilationUnit_ForAttribute").Single().Outputs.Single().Reason) 1224Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps("compilationUnitAndGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1225Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps("result_ForAttributeInternal").Single().Outputs.Single().Reason) 1226Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps("compilationAndGroupedNodes_ForAttributeWithMetadataName").Single().Outputs.Single().Reason) 1227Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps("result_ForAttributeWithMetadataName").Single().Outputs.Single().Reason) 1267Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 1270Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps("collectedGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1271Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("compilationGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1272Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("allUpGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1273Assert.Collection(runResult.TrackedSteps("compilationUnit_ForAttribute").Single().Outputs, 1275Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps("compilationUnitAndGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1276Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps("result_ForAttributeInternal").Single().Outputs.Single().Reason) 1277Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps("compilationAndGroupedNodes_ForAttributeWithMetadataName").Single().Outputs.Single().Reason) 1278Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps("result_ForAttributeWithMetadataName").Single().Outputs.Single().Reason)
SourceGeneration\GeneratorDriverTests_Attributes_SimpleName.vb (98)
60Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 92Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 168Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 198Assert.True(IsClassStatementWithName(_step.Outputs.First().Value, "C")) 199Assert.True(IsClassStatementWithName(_step.Outputs.Last().Value, "D")) 230Assert.True(IsClassStatementWithName(_step.Outputs.First().Value, "C")) 231Assert.False(_step.Outputs.Any(Function(o) IsClassStatementWithName(o.Value, "D"))) 262Assert.False(_step.Outputs.Any(Function(o) IsClassStatementWithName(o.Value, "C"))) 263Assert.True(IsClassStatementWithName(_step.Outputs.Last().Value, "D")) 294Assert.True(IsClassStatementWithName(_step.Outputs.First().Value, "C")) 295Assert.True(IsClassStatementWithName(_step.Outputs.Last().Value, "D")) 324Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.First().Value, "C"))) 350Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 376Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 402Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 435Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 463Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 804Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 831Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 860Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 889Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 916Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 942Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 1025Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 1052Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 1084Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 1091Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 1094Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps("collectedGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1095Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("allUpGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1096Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("compilationUnit_ForAttribute").Single().Outputs.Single().Reason) 1097Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("compilationUnitAndGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1098Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("result_ForAttribute").Single().Outputs.Single().Reason) 1124Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 1131Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 1134Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps("collectedGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1135Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("allUpGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1136Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps("compilationUnit_ForAttribute").Single().Outputs.Single().Reason) 1137Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("compilationUnitAndGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1138Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("result_ForAttribute").Single().Outputs.Single().Reason) 1165Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 1173Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps("collectedGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1174Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("allUpGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1176Assert.Equal(IncrementalStepRunReason.Removed, runResult.TrackedSteps("compilationUnit_ForAttribute").Single().Outputs.Single().Reason) 1177Assert.Equal(IncrementalStepRunReason.Removed, runResult.TrackedSteps("compilationUnitAndGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1178Assert.Equal(IncrementalStepRunReason.Removed, runResult.TrackedSteps("result_ForAttribute").Single().Outputs.Single().Reason) 1205Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 1216Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps("collectedGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1217Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("allUpGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1219Assert.Equal(IncrementalStepRunReason.Removed, runResult.TrackedSteps("compilationUnit_ForAttribute").Single().Outputs.Single().Reason) 1220Assert.Equal(IncrementalStepRunReason.Removed, runResult.TrackedSteps("compilationUnitAndGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1221Assert.Equal(IncrementalStepRunReason.Removed, runResult.TrackedSteps("result_ForAttribute").Single().Outputs.Single().Reason) 1258Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps("collectedGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1259Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("allUpGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1261Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps("compilationUnit_ForAttribute").Single().Outputs.Single().Reason) 1262Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps("compilationUnitAndGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1263Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps("result_ForAttribute").Single().Outputs.Single().Reason) 1266Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 1293Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 1300Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps("collectedGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1301Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("allUpGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1303Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps("compilationUnit_ForAttribute").Single().Outputs.Single().Reason) 1304Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps("compilationUnitAndGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1305Assert.Equal(IncrementalStepRunReason.Removed, runResult.TrackedSteps("result_ForAttribute").Single().Outputs.Single().Reason) 1338Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps("collectedGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1339Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("allUpGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1341Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps("compilationUnit_ForAttribute").Single().Outputs.Single().Reason) 1342Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps("compilationUnitAndGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1343Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps("result_ForAttribute").Single().Outputs.Single().Reason) 1346Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 1376Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps("collectedGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1377Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("allUpGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1379Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps("compilationUnit_ForAttribute").Single().Outputs.Single().Reason) 1380Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps("compilationUnitAndGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1381Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps("result_ForAttribute").Single().Outputs.Single().Reason) 1384Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 1411Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 1420Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps("collectedGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1421Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("allUpGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1423Assert.Collection(runResult.TrackedSteps("compilationUnit_ForAttribute").Single().Outputs, 1425Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("compilationUnitAndGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1426Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("result_ForAttribute").Single().Outputs.Single().Reason) 1453Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 1463Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps("collectedGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1464Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("allUpGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1466Assert.Collection(runResult.TrackedSteps("compilationUnit_ForAttribute").Single().Outputs, 1470Sub(_step) Assert.Equal(IncrementalStepRunReason.Cached, _step.Outputs.Single().Reason), 1471Sub(_step) Assert.Equal(IncrementalStepRunReason.New, _step.Outputs.Single().Reason)) 1473Sub(_step) Assert.Equal(IncrementalStepRunReason.Cached, _step.Outputs.Single().Reason), 1474Sub(_step) Assert.Equal(IncrementalStepRunReason.New, _step.Outputs.Single().Reason)) 1477Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C")), 1478Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "D"))) 1505Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "C"))) 1516Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps("collectedGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1517Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps("allUpGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1519Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps("compilationUnit_ForAttribute").Single().Outputs.Single().Reason) 1520Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps("compilationUnitAndGlobalAliases_ForAttribute").Single().Outputs.Single().Reason) 1521Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps("result_ForAttribute").Single().Outputs.Single().Reason) 1524Sub(_step) Assert.True(IsClassStatementWithName(_step.Outputs.Single().Value, "D")))
Microsoft.CodeAnalysis.Workspaces.UnitTests (8)
SolutionTests\SolutionWithSourceGeneratorTests.cs (8)
189source => Assert.Equal(IncrementalStepRunReason.New, source.Source.Outputs[source.OutputIndex].Reason)); 190Assert.Collection(step.Outputs, 208&& step.Inputs[0].Source.Outputs[step.Inputs[0].OutputIndex].Reason == IncrementalStepRunReason.Modified 209&& step.Outputs is [{ Reason: IncrementalStepRunReason.Modified }]; 215&& step.Inputs[0].Source.Outputs[step.Inputs[0].OutputIndex].Reason == IncrementalStepRunReason.Cached 216&& step.Outputs is [{ Reason: IncrementalStepRunReason.Cached }]; 233source => Assert.Equal(IncrementalStepRunReason.Cached, source.Source.Outputs[source.OutputIndex].Reason)); 234Assert.Collection(step.Outputs,