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