2 overrides of GetCodeWithExpression
Microsoft.CodeAnalysis.NetAnalyzers.UnitTests (2)
Microsoft.NetCore.Analyzers\Performance\DoNotUseCountWhenAnyCanBeUsedTests.Code.cs (2)
120
public override string
GetCodeWithExpression
(string expression, params string[] additionalNamspaces)
255
public override string
GetCodeWithExpression
(string expression, params string[] additionalNamspaces)
58 references to GetCodeWithExpression
Microsoft.CodeAnalysis.NetAnalyzers.UnitTests (58)
Microsoft.NetCore.Analyzers\Performance\DoNotUseCountWhenAnyCanBeUsedTests.Tests.cs (40)
27
SourceProvider.
GetCodeWithExpression
(
39
SourceProvider.
GetCodeWithExpression
(
49
SourceProvider.
GetCodeWithExpression
(
59
SourceProvider.
GetCodeWithExpression
(
70
SourceProvider.
GetCodeWithExpression
(
81
SourceProvider.
GetCodeWithExpression
(
93
SourceProvider.
GetCodeWithExpression
(
105
SourceProvider.
GetCodeWithExpression
(
116
SourceProvider.
GetCodeWithExpression
(
127
SourceProvider.
GetCodeWithExpression
(
138
SourceProvider.
GetCodeWithExpression
(
149
SourceProvider.
GetCodeWithExpression
(
161
SourceProvider.
GetCodeWithExpression
(
165
SourceProvider.
GetCodeWithExpression
(
177
SourceProvider.
GetCodeWithExpression
(
181
SourceProvider.
GetCodeWithExpression
(
194
SourceProvider.
GetCodeWithExpression
(
198
SourceProvider.
GetCodeWithExpression
(
211
SourceProvider.
GetCodeWithExpression
(
215
SourceProvider.
GetCodeWithExpression
(
1483
SourceProvider.
GetCodeWithExpression
(
1493
SourceProvider.
GetCodeWithExpression
(
1503
SourceProvider.
GetCodeWithExpression
(
1513
SourceProvider.
GetCodeWithExpression
(
1524
SourceProvider.
GetCodeWithExpression
(
1535
SourceProvider.
GetCodeWithExpression
(
1545
SourceProvider.
GetCodeWithExpression
(
1555
SourceProvider.
GetCodeWithExpression
(
1566
SourceProvider.
GetCodeWithExpression
(
1577
SourceProvider.
GetCodeWithExpression
(
1588
SourceProvider.
GetCodeWithExpression
(
1599
SourceProvider.
GetCodeWithExpression
(
1611
SourceProvider.
GetCodeWithExpression
(
1615
SourceProvider.
GetCodeWithExpression
(
1627
SourceProvider.
GetCodeWithExpression
(
1631
SourceProvider.
GetCodeWithExpression
(
1642
SourceProvider.
GetCodeWithExpression
(
1646
SourceProvider.
GetCodeWithExpression
(
1657
SourceProvider.
GetCodeWithExpression
(
1661
SourceProvider.
GetCodeWithExpression
(
Microsoft.NetCore.Analyzers\Performance\PreferIsEmptyOverCountTests.cs (12)
472
testSource = SourceProvider.
GetCodeWithExpression
(testSource);
480
string fixedSource = SourceProvider.
GetCodeWithExpression
(SourceProvider.GetFixedIsEmptyPropertyCode(shouldNegate));
489
testSource: SourceProvider.
GetCodeWithExpression
(
491
fixedSource: SourceProvider.
GetCodeWithExpression
(
499
testSource: SourceProvider.
GetCodeWithExpression
(
501
fixedSource: SourceProvider.
GetCodeWithExpression
(
524
string testSource = SourceProvider.
GetCodeWithExpression
(
530
string fixedSource = SourceProvider.
GetCodeWithExpression
(
541
testSource: SourceProvider.
GetCodeWithExpression
(
544
fixedSource: SourceProvider.
GetCodeWithExpression
(
553
testSource: SourceProvider.
GetCodeWithExpression
(
556
fixedSource: SourceProvider.
GetCodeWithExpression
(
Microsoft.NetCore.Analyzers\Performance\UsePropertyInsteadOfCountMethodWhenAvailableTests.cs (6)
786
testSource: SourceProvider.
GetCodeWithExpression
(
789
fixedSource: SourceProvider.
GetCodeWithExpression
(
798
testSource: SourceProvider.
GetCodeWithExpression
(
801
fixedSource: SourceProvider.
GetCodeWithExpression
(
829
testSource = SourceProvider.
GetCodeWithExpression
(
832
fixedSource = SourceProvider.
GetCodeWithExpression
(