1 write to Outputs
Microsoft.CodeAnalysis (1)
SourceGeneration\IncrementalGeneratorRunStep.cs (1)
22
Outputs
= outputs;
496 references to Outputs
Microsoft.AspNetCore.Http.Extensions.Tests (2)
RequestDelegateGenerator\CompileTimeIncrementalityTests.cs (1)
88
.SelectMany(value => value.
Outputs
);
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
90
.SelectMany(step => step.
Outputs
)
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
90
.SelectMany(step => step.
Outputs
)
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
EndToEndTests.cs (1)
834
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C1" }));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (492)
SourceGeneration\GeneratorDriverTests.cs (110)
1699
source => Assert.Equal(IncrementalStepRunReason.New, source.Source.
Outputs
[source.OutputIndex].Reason));
1700
Assert.Collection(step.
Outputs
,
1711
source => Assert.Equal(IncrementalStepRunReason.Cached, source.Source.
Outputs
[source.OutputIndex].Reason));
1712
Assert.Collection(step.
Outputs
,
1750
Assert.Equal(compilation, source.Source.
Outputs
[source.OutputIndex].Value);
1751
Assert.Equal(IncrementalStepRunReason.New, source.Source.
Outputs
[source.OutputIndex].Reason);
1753
Assert.Collection(step.
Outputs
,
1766
Assert.Equal(text1, source.Source.
Outputs
[source.OutputIndex].Value);
1767
Assert.Equal(IncrementalStepRunReason.New, source.Source.
Outputs
[source.OutputIndex].Reason);
1769
Assert.Collection(step.
Outputs
,
1788
Assert.Equal(compilation, source.Source.
Outputs
[source.OutputIndex].Value);
1789
Assert.Equal(IncrementalStepRunReason.Cached, source.Source.
Outputs
[source.OutputIndex].Reason);
1791
Assert.Collection(step.
Outputs
,
1804
Assert.Equal(text1, source.Source.
Outputs
[source.OutputIndex].Value);
1805
Assert.Equal(IncrementalStepRunReason.Cached, source.Source.
Outputs
[source.OutputIndex].Reason);
1807
Assert.Collection(step.
Outputs
,
1819
Assert.Equal(text2, source.Source.
Outputs
[source.OutputIndex].Value);
1820
Assert.Equal(IncrementalStepRunReason.New, source.Source.
Outputs
[source.OutputIndex].Reason);
1822
Assert.Collection(step.
Outputs
,
1841
Assert.Equal(newCompilation, source.Source.
Outputs
[source.OutputIndex].Value);
1842
Assert.Equal(IncrementalStepRunReason.Modified, source.Source.
Outputs
[source.OutputIndex].Reason);
1844
Assert.Collection(step.
Outputs
,
1857
Assert.Equal(text1, source.Source.
Outputs
[source.OutputIndex].Value);
1858
Assert.Equal(IncrementalStepRunReason.Cached, source.Source.
Outputs
[source.OutputIndex].Reason);
1860
Assert.Collection(step.
Outputs
,
1872
Assert.Equal(text2, source.Source.
Outputs
[source.OutputIndex].Value);
1873
Assert.Equal(IncrementalStepRunReason.Cached, source.Source.
Outputs
[source.OutputIndex].Reason);
1875
Assert.Collection(step.
Outputs
,
1893
Assert.Equal(newCompilation, source.Source.
Outputs
[source.OutputIndex].Value);
1894
Assert.Equal(IncrementalStepRunReason.Cached, source.Source.
Outputs
[source.OutputIndex].Reason);
1896
Assert.Collection(step.
Outputs
,
1909
Assert.Equal(text1, source.Source.
Outputs
[source.OutputIndex].Value);
1910
Assert.Equal(IncrementalStepRunReason.Cached, source.Source.
Outputs
[source.OutputIndex].Reason);
1912
Assert.Collection(step.
Outputs
,
1924
Assert.Equal(text2, source.Source.
Outputs
[source.OutputIndex].Value);
1925
Assert.Equal(IncrementalStepRunReason.Cached, source.Source.
Outputs
[source.OutputIndex].Reason);
1927
Assert.Collection(step.
Outputs
,
2010
Assert.Equal(compilation, source.Source.
Outputs
[source.OutputIndex].Value);
2011
Assert.Equal(IncrementalStepRunReason.New, source.Source.
Outputs
[source.OutputIndex].Reason);
2015
Assert.Equal(texts[0], ((ImmutableArray<AdditionalText>)source.Source.
Outputs
[source.OutputIndex].Value)[0]);
2016
Assert.Equal(IncrementalStepRunReason.New, source.Source.
Outputs
[source.OutputIndex].Reason);
2018
Assert.Collection(step.
Outputs
,
2039
Assert.Equal(compilation, source.Source.
Outputs
[source.OutputIndex].Value);
2040
Assert.Equal(IncrementalStepRunReason.Cached, source.Source.
Outputs
[source.OutputIndex].Reason);
2044
Assert.Empty((ImmutableArray<AdditionalText>)source.Source.
Outputs
[source.OutputIndex].Value);
2045
Assert.Equal(IncrementalStepRunReason.Modified, source.Source.
Outputs
[source.OutputIndex].Reason);
2047
Assert.Collection(step.
Outputs
,
2065
var value = ((Compilation, ImmutableArray<AdditionalText>))source.Source.
Outputs
[source.OutputIndex].Value;
2068
Assert.Equal(IncrementalStepRunReason.Unchanged, source.Source.
Outputs
[source.OutputIndex].Reason);
2070
Assert.Collection(step.
Outputs
,
2091
Assert.Equal(newCompilation, source.Source.
Outputs
[source.OutputIndex].Value);
2092
Assert.Equal(IncrementalStepRunReason.Modified, source.Source.
Outputs
[source.OutputIndex].Reason);
2096
Assert.Empty((ImmutableArray<AdditionalText>)source.Source.
Outputs
[source.OutputIndex].Value);
2097
Assert.Equal(IncrementalStepRunReason.Unchanged, source.Source.
Outputs
[source.OutputIndex].Reason);
2099
Assert.Collection(step.
Outputs
,
2335
driver.GetRunResult().Results.Single().TrackedSteps["Select"].Select(r => r.
Outputs
.Single()));
2356
driver.GetRunResult().Results.Single().TrackedSteps["Select"].Select(r => r.
Outputs
.Single()));
2406
Assert.Equal("C", ((ClassDeclarationSyntax)step.
Outputs
[0].Value).Identifier.ValueText);
2407
Assert.Equal(IncrementalStepRunReason.New, step.
Outputs
[0].Reason);
2411
Assert.Equal("D", ((ClassDeclarationSyntax)step.
Outputs
[0].Value).Identifier.ValueText);
2412
Assert.Equal(IncrementalStepRunReason.New, step.
Outputs
[0].Reason);
2422
Assert.Equal("C", ((ClassDeclarationSyntax)step.
Outputs
[0].Value).Identifier.ValueText);
2423
Assert.Equal(IncrementalStepRunReason.Cached, step.
Outputs
[0].Reason);
2427
Assert.Equal("D", ((ClassDeclarationSyntax)step.
Outputs
[0].Value).Identifier.ValueText);
2428
Assert.Equal(IncrementalStepRunReason.Cached, step.
Outputs
[0].Reason);
2439
Assert.Equal("E", ((ClassDeclarationSyntax)step.
Outputs
[0].Value).Identifier.ValueText);
2440
Assert.Equal(IncrementalStepRunReason.Modified, step.
Outputs
[0].Reason);
2444
Assert.Equal("D", ((ClassDeclarationSyntax)step.
Outputs
[0].Value).Identifier.ValueText);
2445
Assert.Equal(IncrementalStepRunReason.Cached, step.
Outputs
[0].Reason);
2503
var output = runResult.TrackedSteps["ParseOptions"][0].
Outputs
[0].Value;
2512
Assert.Equal(IncrementalStepRunReason.Cached, step.
Outputs
[0].Reason);
2523
output = runResult.TrackedSteps["ParseOptions"][0].
Outputs
[0].Value;
2532
Assert.Equal(IncrementalStepRunReason.Cached, step.
Outputs
[0].Reason);
2640
Assert.Collection(step.
Outputs
,
2656
Assert.Collection(step.
Outputs
,
2678
Assert.Collection(step.
Outputs
,
2720
var consumedInput = input.Source.
Outputs
[input.OutputIndex];
2724
Assert.Collection(step.
Outputs
,
2736
var consumedInput = input.Source.
Outputs
[input.OutputIndex];
2740
Assert.Collection(step.
Outputs
,
2752
var consumedInput = input.Source.
Outputs
[input.OutputIndex];
2756
Assert.Collection(step.
Outputs
,
2773
var consumedInput = input.Source.
Outputs
[input.OutputIndex];
2777
Assert.Collection(step.
Outputs
,
2789
var consumedInput = input.Source.
Outputs
[input.OutputIndex];
2793
Assert.Collection(step.
Outputs
,
2805
var consumedInput = input.Source.
Outputs
[input.OutputIndex];
2809
Assert.Collection(step.
Outputs
,
2829
var consumedInput = input.Source.
Outputs
[input.OutputIndex];
2833
Assert.Collection(step.
Outputs
,
2845
var consumedInput = input.Source.
Outputs
[input.OutputIndex];
2849
Assert.Collection(step.
Outputs
,
2861
var consumedInput = input.Source.
Outputs
[input.OutputIndex];
2865
Assert.Collection(step.
Outputs
,
2910
var consumedInput = input.Source.
Outputs
[input.OutputIndex];
2914
Assert.Collection(step.
Outputs
,
2927
var consumedInput = input.Source.
Outputs
[input.OutputIndex];
2931
Assert.Collection(step.
Outputs
,
2948
var consumedInput = input.Source.
Outputs
[input.OutputIndex];
2952
Assert.Collection(step.
Outputs
,
2965
var consumedInput = input.Source.
Outputs
[input.OutputIndex];
2969
Assert.Collection(step.
Outputs
,
2990
var consumedInput = input.Source.
Outputs
[input.OutputIndex];
2994
Assert.Collection(step.
Outputs
,
3007
var consumedInput = input.Source.
Outputs
[input.OutputIndex];
3011
Assert.Collection(step.
Outputs
,
3032
var consumedInput = input.Source.
Outputs
[input.OutputIndex];
3036
Assert.Collection(step.
Outputs
,
3049
var consumedInput = input.Source.
Outputs
[input.OutputIndex];
3053
Assert.Collection(step.
Outputs
,
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.cs (113)
83
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C1" }));
162
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C2" }));
192
step => Assert.True(step.
Outputs
.Single().Value is CompilationUnitSyntax c && c.SyntaxTree == compilation.SyntaxTrees.Single()));
222
step => Assert.True(step.
Outputs
.Single().Value is CompilationUnitSyntax c && c.SyntaxTree == compilation.SyntaxTrees.Single()));
249
step => Assert.True(step.
Outputs
.Single().Value is CompilationUnitSyntax c && c.SyntaxTree == compilation.SyntaxTrees.First()));
276
step => Assert.True(step.
Outputs
.Single().Value is CompilationUnitSyntax c && c.SyntaxTree == compilation.SyntaxTrees.Last()));
304
step => Assert.True(step.
Outputs
.Single().Value is CompilationUnitSyntax c && c.SyntaxTree == compilation.SyntaxTrees.First()),
305
step => Assert.True(step.
Outputs
.Single().Value is CompilationUnitSyntax c && c.SyntaxTree == compilation.SyntaxTrees.Last()));
335
step => Assert.True(step.
Outputs
.Single().Value is LocalFunctionStatementSyntax { Identifier.ValueText: "LocalFunc" }));
371
step => Assert.True(step.
Outputs
.Single().Value is LocalFunctionStatementSyntax { Identifier.ValueText: "LocalFunc" }));
410
step => Assert.True(step.
Outputs
.Single().Value is LocalFunctionStatementSyntax { Identifier.ValueText: "LocalFunc" }));
439
step => Assert.True(step.
Outputs
.Single().Value is TypeParameterSyntax { Identifier.ValueText: "T" }));
472
step => Assert.True(step.
Outputs
.Single().Value is MethodDeclarationSyntax { Identifier.ValueText: "M" }));
505
step => Assert.True(step.
Outputs
.Single().Value is MethodDeclarationSyntax { Identifier.ValueText: "M" }));
537
step => Assert.True(step.
Outputs
.Single().Value is MethodDeclarationSyntax { Identifier.ValueText: "M", Body: null, ExpressionBody: null }));
569
step => Assert.True(step.
Outputs
.Single().Value is MethodDeclarationSyntax { Identifier.ValueText: "M", Body: not null }));
600
step => Assert.True(step.
Outputs
.Single().Value is VariableDeclaratorSyntax { Identifier.ValueText: "m" }));
631
step => Assert.Collection(step.
Outputs
,
664
step => Assert.True(step.
Outputs
.Single().Value is VariableDeclaratorSyntax { Identifier.ValueText: "m" }));
695
step => Assert.Collection(step.
Outputs
,
724
step => Assert.True(step.
Outputs
.Single().Value is LambdaExpressionSyntax));
758
step => Assert.True(step.
Outputs
.Single().Value is AccessorDeclarationSyntax { RawKind: (int)SyntaxKind.GetAccessorDeclaration }));
787
step => Assert.True(step.
Outputs
.Single().Value is TypeParameterSyntax { Identifier.ValueText: "T" }));
824
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C1" }));
861
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C2" }));
898
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C1" }));
935
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C2" }));
1043
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
1080
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
1118
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
1156
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
1194
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
1232
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
1429
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
1436
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
1439
Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1440
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1441
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1442
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().
Outputs
.Single().Reason);
1443
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1444
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["result_ForAttributeInternal"].Single().
Outputs
.Single().Reason);
1445
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationAndGroupedNodes_ForAttributeWithMetadataName"].Single().
Outputs
.Single().Reason);
1446
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["result_ForAttributeWithMetadataName"].Single().
Outputs
.Single().Reason);
1476
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
1483
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
1486
Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1487
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1488
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1489
Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().
Outputs
.Single().Reason);
1490
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1491
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["result_ForAttributeInternal"].Single().
Outputs
.Single().Reason);
1492
Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["compilationAndGroupedNodes_ForAttributeWithMetadataName"].Single().
Outputs
.Single().Reason);
1493
Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["result_ForAttributeWithMetadataName"].Single().
Outputs
.Single().Reason);
1523
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
1529
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
1532
Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1533
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1534
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1535
Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().
Outputs
,
1537
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1538
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["result_ForAttributeInternal"].Single().
Outputs
.Single().Reason);
1539
Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["compilationAndGroupedNodes_ForAttributeWithMetadataName"].Single().
Outputs
.Single().Reason);
1540
Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["result_ForAttributeWithMetadataName"].Single().
Outputs
.Single().Reason);
1575
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
1578
Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1579
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1580
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1581
Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().
Outputs
,
1583
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1584
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["result_ForAttributeInternal"].Single().
Outputs
.Single().Reason);
1585
Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["compilationAndGroupedNodes_ForAttributeWithMetadataName"].Single().
Outputs
.Single().Reason);
1586
Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["result_ForAttributeWithMetadataName"].Single().
Outputs
.Single().Reason);
1623
step => Assert.Collection(step.
Outputs
,
1628
Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1629
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1630
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1631
Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().
Outputs
,
1633
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1634
Assert.Collection(runResult.TrackedSteps["result_ForAttributeInternal"].Single().
Outputs
,
1636
Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["compilationAndGroupedNodes_ForAttributeWithMetadataName"].Single().
Outputs
.Single().Reason);
1637
Assert.Collection(runResult.TrackedSteps["result_ForAttributeWithMetadataName"].Single().
Outputs
,
1676
step => Assert.Collection(step.
Outputs
, t => Assert.True(t.Value is ClassDeclarationSyntax { Identifier.ValueText: "C1" })),
1677
step => Assert.Collection(step.
Outputs
, t => Assert.True(t.Value is ClassDeclarationSyntax { Identifier.ValueText: "C2" })));
1680
Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1681
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1682
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1683
Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().
Outputs
,
1687
s => Assert.Equal(IncrementalStepRunReason.Cached, s.
Outputs
.Single().Reason),
1688
s => Assert.Equal(IncrementalStepRunReason.Cached, s.
Outputs
.Single().Reason));
1690
s => Assert.Equal(IncrementalStepRunReason.Cached, s.
Outputs
.Single().Reason),
1691
s => Assert.Equal(IncrementalStepRunReason.Cached, s.
Outputs
.Single().Reason));
1693
s => Assert.Equal(IncrementalStepRunReason.Modified, s.
Outputs
.Single().Reason),
1694
s => Assert.Equal(IncrementalStepRunReason.Modified, s.
Outputs
.Single().Reason));
1696
s => Assert.Equal(IncrementalStepRunReason.New, s.
Outputs
.Single().Reason),
1697
s => Assert.Equal(IncrementalStepRunReason.New, s.
Outputs
.Single().Reason));
1740
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
1743
Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1744
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1745
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1746
Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().
Outputs
.Single().Reason);
1747
Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1748
Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["result_ForAttributeInternal"].Single().
Outputs
.Single().Reason);
1749
Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["compilationAndGroupedNodes_ForAttributeWithMetadataName"].Single().
Outputs
.Single().Reason);
1750
Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["result_ForAttributeWithMetadataName"].Single().
Outputs
.Single().Reason);
1788
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
1791
Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1792
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1793
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1794
Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().
Outputs
,
1796
Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1797
Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["result_ForAttributeInternal"].Single().
Outputs
.Single().Reason);
1798
Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["compilationAndGroupedNodes_ForAttributeWithMetadataName"].Single().
Outputs
.Single().Reason);
1799
Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["result_ForAttributeWithMetadataName"].Single().
Outputs
.Single().Reason);
SourceGeneration\GeneratorDriverTests_Attributes_SimpleName.cs (134)
54
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
86
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
162
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
192
Assert.True(step.
Outputs
.First().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" });
193
Assert.True(step.
Outputs
.Last().Value is ClassDeclarationSyntax { Identifier.ValueText: "D" });
224
Assert.True(step.
Outputs
.First().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" });
225
Assert.False(step.
Outputs
.Any(o => o.Value is ClassDeclarationSyntax { Identifier.ValueText: "D" }));
256
Assert.False(step.
Outputs
.Any(o => o.Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
257
Assert.True(step.
Outputs
.Last().Value is ClassDeclarationSyntax { Identifier.ValueText: "D" });
290
Assert.True(step.
Outputs
.First().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" });
291
Assert.True(step.
Outputs
.Last().Value is ClassDeclarationSyntax { Identifier.ValueText: "D" });
321
step => Assert.True(step.
Outputs
.First().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
347
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
373
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
399
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
432
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
460
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
546
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
579
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
611
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
810
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
841
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
871
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
956
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
985
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
1017
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
1024
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
1027
Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1028
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1029
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().
Outputs
.Single().Reason);
1030
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1031
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["result_ForAttribute"].Single().
Outputs
.Single().Reason);
1057
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
1064
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
1067
Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1068
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1069
Assert.Equal(IncrementalStepRunReason.Unchanged, runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().
Outputs
.Single().Reason);
1070
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1071
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["result_ForAttribute"].Single().
Outputs
.Single().Reason);
1103
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
1110
s => Assert.Equal(IncrementalStepRunReason.Cached, s.
Outputs
.Single().Reason),
1111
s => Assert.Equal(IncrementalStepRunReason.Cached, s.
Outputs
.Single().Reason));
1114
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1117
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1119
Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().
Outputs
,
1123
Assert.Equal(IncrementalStepRunReason.Removed, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1124
Assert.Equal(IncrementalStepRunReason.Removed, runResult.TrackedSteps["result_ForAttribute"].Single().
Outputs
.Single().Reason);
1156
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
1166
s => Assert.Equal(IncrementalStepRunReason.Cached, s.
Outputs
.Single().Reason),
1167
s => Assert.Equal(IncrementalStepRunReason.Cached, s.
Outputs
.Single().Reason));
1168
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1169
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1171
Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().
Outputs
,
1175
Assert.Equal(IncrementalStepRunReason.Removed, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1176
Assert.Equal(IncrementalStepRunReason.Removed, runResult.TrackedSteps["result_ForAttribute"].Single().
Outputs
.Single().Reason);
1217
s => Assert.Equal(IncrementalStepRunReason.Cached, s.
Outputs
.Single().Reason),
1218
s => Assert.Equal(IncrementalStepRunReason.Cached, s.
Outputs
.Single().Reason));
1219
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1220
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1222
Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().
Outputs
,
1226
Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1227
Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["result_ForAttribute"].Single().
Outputs
.Single().Reason);
1230
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
1262
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
1273
s => Assert.Equal(IncrementalStepRunReason.Unchanged, s.
Outputs
.Single().Reason),
1274
s => Assert.Equal(IncrementalStepRunReason.Cached, s.
Outputs
.Single().Reason));
1275
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1276
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1278
Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().
Outputs
,
1282
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1283
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["result_ForAttribute"].Single().
Outputs
.Single().Reason);
1315
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
1324
Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" });
1325
Assert.Equal(IncrementalStepRunReason.Removed, step.
Outputs
.Single().Reason);
1329
s => Assert.Equal(IncrementalStepRunReason.Modified, s.
Outputs
.Single().Reason),
1330
s => Assert.Equal(IncrementalStepRunReason.Removed, s.
Outputs
.Single().Reason));
1331
Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1332
Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1334
Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().
Outputs
,
1338
Assert.Equal(IncrementalStepRunReason.Removed, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1339
Assert.Equal(IncrementalStepRunReason.Removed, runResult.TrackedSteps["result_ForAttribute"].Single().
Outputs
.Single().Reason);
1373
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
1380
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
1383
s => Assert.Equal(IncrementalStepRunReason.Cached, s.
Outputs
.Single().Reason),
1384
s => Assert.Equal(IncrementalStepRunReason.Cached, s.
Outputs
.Single().Reason));
1385
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1386
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1388
Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().
Outputs
,
1392
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1393
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["result_ForAttribute"].Single().
Outputs
.Single().Reason);
1429
s => Assert.Equal(IncrementalStepRunReason.Cached, s.
Outputs
.Single().Reason),
1430
s => Assert.Equal(IncrementalStepRunReason.New, s.
Outputs
.Single().Reason));
1431
Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1432
Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1434
Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().
Outputs
,
1438
Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1439
Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["result_ForAttribute"].Single().
Outputs
.Single().Reason);
1442
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
1474
s => Assert.Equal(IncrementalStepRunReason.New, s.
Outputs
.Single().Reason));
1475
Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1476
Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1478
Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().
Outputs
,
1481
Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1482
Assert.Equal(IncrementalStepRunReason.New, runResult.TrackedSteps["result_ForAttribute"].Single().
Outputs
.Single().Reason);
1485
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
1517
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
1526
s => Assert.Equal(IncrementalStepRunReason.Cached, s.
Outputs
.Single().Reason),
1527
s => Assert.Equal(IncrementalStepRunReason.Cached, s.
Outputs
.Single().Reason));
1528
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1529
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1531
Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().
Outputs
,
1535
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1536
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["result_ForAttribute"].Single().
Outputs
.Single().Reason);
1568
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
1578
s => Assert.Equal(IncrementalStepRunReason.Cached, s.
Outputs
.Single().Reason),
1579
s => Assert.Equal(IncrementalStepRunReason.Cached, s.
Outputs
.Single().Reason));
1580
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1581
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1583
Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().
Outputs
,
1589
s => Assert.Equal(IncrementalStepRunReason.Cached, s.
Outputs
.Single().Reason),
1590
s => Assert.Equal(IncrementalStepRunReason.New, s.
Outputs
.Single().Reason));
1592
s => Assert.Equal(IncrementalStepRunReason.Cached, s.
Outputs
.Single().Reason),
1593
s => Assert.Equal(IncrementalStepRunReason.New, s.
Outputs
.Single().Reason));
1596
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }),
1597
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "D" }));
1629
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "C" }));
1640
s => Assert.Equal(IncrementalStepRunReason.Cached, s.
Outputs
.Single().Reason),
1641
s => Assert.Equal(IncrementalStepRunReason.Cached, s.
Outputs
.Single().Reason));
1642
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["collectedGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1643
Assert.Equal(IncrementalStepRunReason.Cached, runResult.TrackedSteps["allUpGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1645
Assert.Collection(runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().
Outputs
,
1649
Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().
Outputs
.Single().Reason);
1650
Assert.Equal(IncrementalStepRunReason.Modified, runResult.TrackedSteps["result_ForAttribute"].Single().
Outputs
.Single().Reason);
1653
step => Assert.True(step.
Outputs
.Single().Value is ClassDeclarationSyntax { Identifier.ValueText: "D" }));
SourceGeneration\StateTableTests.cs (69)
387
Assert.Equal(1, source.Source.
Outputs
[source.OutputIndex].Value);
388
Assert.Equal(IncrementalStepRunReason.New, source.Source.
Outputs
[source.OutputIndex].Reason);
393
Assert.Equal(2, source.Source.
Outputs
[source.OutputIndex].Value);
394
Assert.Equal(IncrementalStepRunReason.New, source.Source.
Outputs
[source.OutputIndex].Reason);
399
Assert.Equal(3, source.Source.
Outputs
[source.OutputIndex].Value);
400
Assert.Equal(IncrementalStepRunReason.New, source.Source.
Outputs
[source.OutputIndex].Reason);
402
Assert.Collection(step.
Outputs
,
450
Assert.Equal(1, source.Source.
Outputs
[source.OutputIndex].Value);
451
Assert.Equal(IncrementalStepRunReason.Cached, source.Source.
Outputs
[source.OutputIndex].Reason);
456
Assert.Equal(2, source.Source.
Outputs
[source.OutputIndex].Value);
457
Assert.Equal(IncrementalStepRunReason.Cached, source.Source.
Outputs
[source.OutputIndex].Reason);
462
Assert.Equal(3, source.Source.
Outputs
[source.OutputIndex].Value);
463
Assert.Equal(IncrementalStepRunReason.Cached, source.Source.
Outputs
[source.OutputIndex].Reason);
465
Assert.Collection(step.
Outputs
,
497
Assert.Equal(1, source.Source.
Outputs
[source.OutputIndex].Value);
498
Assert.Equal(IncrementalStepRunReason.Cached, source.Source.
Outputs
[source.OutputIndex].Reason);
503
Assert.Equal(2, source.Source.
Outputs
[source.OutputIndex].Value);
504
Assert.Equal(IncrementalStepRunReason.Cached, source.Source.
Outputs
[source.OutputIndex].Reason);
509
Assert.Equal(3, source.Source.
Outputs
[source.OutputIndex].Value);
510
Assert.Equal(IncrementalStepRunReason.Removed, source.Source.
Outputs
[source.OutputIndex].Reason);
512
Assert.Collection(step.
Outputs
,
564
Assert.Equal(1, source.Source.
Outputs
[source.OutputIndex].Value);
565
Assert.Equal(IncrementalStepRunReason.Cached, source.Source.
Outputs
[source.OutputIndex].Reason);
570
Assert.Equal(2, source.Source.
Outputs
[source.OutputIndex].Value);
571
Assert.Equal(IncrementalStepRunReason.Cached, source.Source.
Outputs
[source.OutputIndex].Reason);
576
Assert.Equal(4, source.Source.
Outputs
[source.OutputIndex].Value);
577
Assert.Equal(IncrementalStepRunReason.Modified, source.Source.
Outputs
[source.OutputIndex].Reason);
579
Assert.Collection(step.
Outputs
,
646
Assert.Equal(1, source.Source.
Outputs
[source.OutputIndex].Value);
647
Assert.Equal(IncrementalStepRunReason.New, source.Source.
Outputs
[source.OutputIndex].Reason);
649
Assert.Collection(step.
Outputs
,
681
Assert.Equal(1, source.Source.
Outputs
[source.OutputIndex].Value);
682
Assert.Equal(IncrementalStepRunReason.Cached, source.Source.
Outputs
[source.OutputIndex].Reason);
684
Assert.Collection(step.
Outputs
,
719
Assert.Equal(value, source.Source.
Outputs
[source.OutputIndex].Value);
720
Assert.Equal(IncrementalStepRunReason.Modified, source.Source.
Outputs
[source.OutputIndex].Reason);
722
Assert.Collection(step.
Outputs
,
758
Assert.Equal(value, source.Source.
Outputs
[source.OutputIndex].Value);
759
Assert.Equal(IncrementalStepRunReason.Modified, source.Source.
Outputs
[source.OutputIndex].Reason);
761
Assert.Collection(step.
Outputs
,
794
Assert.Equal((1, IncrementalStepRunReason.Cached), Assert.Single(step.
Outputs
));
799
Assert.Equal((2, IncrementalStepRunReason.Removed), Assert.Single(step.
Outputs
));
804
Assert.Equal((3, IncrementalStepRunReason.Removed), Assert.Single(step.
Outputs
));
809
Assert.Equal((4, IncrementalStepRunReason.New), Assert.Single(step.
Outputs
));
814
Assert.Equal((5, IncrementalStepRunReason.New), Assert.Single(step.
Outputs
));
819
Assert.Equal((6, IncrementalStepRunReason.New), Assert.Single(step.
Outputs
));
844
Assert.Collection(step.
Outputs
, output => Assert.Equal((1, IncrementalStepRunReason.Cached), output)),
846
Assert.Collection(step.
Outputs
, output => Assert.Equal((2, IncrementalStepRunReason.Removed), output)),
848
Assert.Collection(step.
Outputs
, output => Assert.Equal((3, IncrementalStepRunReason.Removed), output)),
850
Assert.Collection(step.
Outputs
, output => Assert.Equal((4, IncrementalStepRunReason.New), output)),
852
Assert.Collection(step.
Outputs
, output => Assert.Equal((5, IncrementalStepRunReason.New), output)),
854
Assert.Collection(step.
Outputs
, output => Assert.Equal((6, IncrementalStepRunReason.New), output)));
881
Assert.Equal(IncrementalStepRunReason.Cached, step.Inputs[0].Source.
Outputs
[step.Inputs[0].OutputIndex].Reason);
882
Assert.Collection(step.
Outputs
, output => Assert.Equal(((1, 0), IncrementalStepRunReason.Cached), output));
887
Assert.Equal(IncrementalStepRunReason.Removed, step.Inputs[0].Source.
Outputs
[step.Inputs[0].OutputIndex].Reason);
888
Assert.Collection(step.
Outputs
, output => Assert.Equal(((2, 0), IncrementalStepRunReason.Removed), output));
893
Assert.Equal(IncrementalStepRunReason.Removed, step.Inputs[0].Source.
Outputs
[step.Inputs[0].OutputIndex].Reason);
894
Assert.Collection(step.
Outputs
, output => Assert.Equal(((3, 0), IncrementalStepRunReason.Removed), output));
899
Assert.Equal(IncrementalStepRunReason.New, step.Inputs[0].Source.
Outputs
[step.Inputs[0].OutputIndex].Reason);
900
Assert.Collection(step.
Outputs
, output => Assert.Equal(((4, 0), IncrementalStepRunReason.New), output));
905
Assert.Equal(IncrementalStepRunReason.New, step.Inputs[0].Source.
Outputs
[step.Inputs[0].OutputIndex].Reason);
906
Assert.Collection(step.
Outputs
, output => Assert.Equal(((5, 0), IncrementalStepRunReason.New), output));
911
Assert.Equal(IncrementalStepRunReason.New, step.Inputs[0].Source.
Outputs
[step.Inputs[0].OutputIndex].Reason);
912
Assert.Collection(step.
Outputs
, output => Assert.Equal(((6, 0), IncrementalStepRunReason.New), output));
964
Assert.Equal(thirdValue, (int)transformNodeStep.
Outputs
[2].Value);
988
Assert.Equal(IncrementalStepRunReason.Modified, input.Source.
Outputs
[input.OutputIndex].Reason);
990
Assert.All(step.
Outputs
, output =>
1017
Assert.Equal(IncrementalStepRunReason.Modified, input.Source.
Outputs
[input.OutputIndex].Reason);
1019
Assert.All(step.
Outputs
, output =>
SourceGeneration\SyntaxAwareGeneratorTests.cs (66)
1033
step => Assert.Collection(step.
Outputs
,
1035
step => Assert.Collection(step.
Outputs
,
1037
step => Assert.Collection(step.
Outputs
,
1053
step => Assert.Collection(step.
Outputs
,
1055
step => Assert.Collection(step.
Outputs
,
1057
step => Assert.Collection(step.
Outputs
,
1059
step => Assert.Collection(step.
Outputs
,
1061
step => Assert.Collection(step.
Outputs
,
1110
step => Assert.Collection(step.
Outputs
,
1112
step => Assert.Collection(step.
Outputs
,
1114
step => Assert.Collection(step.
Outputs
,
1116
step => Assert.Collection(step.
Outputs
,
1118
step => Assert.Collection(step.
Outputs
,
1132
step => Assert.Collection(step.
Outputs
,
1134
step => Assert.Collection(step.
Outputs
,
1136
step => Assert.Collection(step.
Outputs
,
1138
step => Assert.Collection(step.
Outputs
,
1140
step => Assert.Collection(step.
Outputs
,
1240
step => Assert.Collection(step.
Outputs
,
1242
step => Assert.Collection(step.
Outputs
,
1244
step => Assert.Collection(step.
Outputs
,
1269
step => Assert.Collection(step.
Outputs
,
1271
step => Assert.Collection(step.
Outputs
,
1273
step => Assert.Collection(step.
Outputs
,
1415
step => Assert.Collection(step.
Outputs
,
1417
step => Assert.Collection(step.
Outputs
,
1419
step => Assert.Collection(step.
Outputs
,
1445
step => Assert.Collection(step.
Outputs
,
1447
step => Assert.Collection(step.
Outputs
,
1449
step => Assert.Collection(step.
Outputs
,
1452
step => Assert.Collection(step.
Outputs
,
1454
step => Assert.Collection(step.
Outputs
,
1456
step => Assert.Collection(step.
Outputs
,
1478
step => Assert.Collection(step.
Outputs
,
1480
step => Assert.Collection(step.
Outputs
,
1482
step => Assert.Collection(step.
Outputs
,
1529
step => Assert.Collection(step.
Outputs
,
1531
step => Assert.Collection(step.
Outputs
,
1533
step => Assert.Collection(step.
Outputs
,
1544
step => Assert.Collection(step.
Outputs
,
1546
step => Assert.Collection(step.
Outputs
,
1548
step => Assert.Collection(step.
Outputs
,
1700
step => Assert.Collection(step.
Outputs
,
1702
step => Assert.Collection(step.
Outputs
,
1704
step => Assert.Collection(step.
Outputs
,
1707
step => Assert.Collection(step.
Outputs
,
1709
step => Assert.Collection(step.
Outputs
,
1711
step => Assert.Collection(step.
Outputs
,
1713
step => Assert.Collection(step.
Outputs
,
1715
step => Assert.Collection(step.
Outputs
,
1717
step => Assert.Collection(step.
Outputs
,
1759
step => Assert.Collection(step.
Outputs
,
1761
step => Assert.Collection(step.
Outputs
,
1763
step => Assert.Collection(step.
Outputs
,
1766
step => Assert.Collection(step.
Outputs
,
1768
step => Assert.Collection(step.
Outputs
,
1770
step => Assert.Collection(step.
Outputs
,
1813
step => Assert.Collection(step.
Outputs
,
1815
step => Assert.Collection(step.
Outputs
,
1817
step => Assert.Collection(step.
Outputs
,
1819
step => Assert.Collection(step.
Outputs
,
1821
step => Assert.Collection(step.
Outputs
,
1823
step => Assert.Collection(step.
Outputs
,
1826
step => Assert.Collection(step.
Outputs
,
1828
step => Assert.Collection(step.
Outputs
,
1830
step => Assert.Collection(step.
Outputs
,