Skip to content

Commit aebc4a3

Browse files
committed
Use new test property names
1 parent 1293a28 commit aebc4a3

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

StyleCop.Analyzers/StyleCop.Analyzers.Test/LayoutRules/SA1504UnitTests.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@ public class Foo
6464
TestCode = testCode,
6565
ExpectedDiagnostics = { expected },
6666
FixedCode = fixedTestCodeSingle,
67-
CodeFixIndex = 0,
67+
CodeActionIndex = 0,
6868
}.RunAsync(CancellationToken.None).ConfigureAwait(false);
6969

7070
await new CSharpTest
7171
{
7272
TestCode = testCode,
7373
ExpectedDiagnostics = { expected },
7474
FixedCode = fixedTestCodeMultiple,
75-
CodeFixIndex = 1,
75+
CodeActionIndex = 1,
7676
}.RunAsync(CancellationToken.None).ConfigureAwait(false);
7777
}
7878

@@ -252,15 +252,15 @@ public event System.EventHandler NameChanged
252252
TestCode = testCode,
253253
ExpectedDiagnostics = { expected },
254254
FixedCode = fixedTestCodeSingle,
255-
CodeFixIndex = 0,
255+
CodeActionIndex = 0,
256256
}.RunAsync(CancellationToken.None).ConfigureAwait(false);
257257

258258
await new CSharpTest
259259
{
260260
TestCode = testCode,
261261
ExpectedDiagnostics = { expected },
262262
FixedCode = fixedTestCodeMultiple,
263-
CodeFixIndex = 1,
263+
CodeActionIndex = 1,
264264
}.RunAsync(CancellationToken.None).ConfigureAwait(false);
265265
}
266266

@@ -375,15 +375,15 @@ public int Prop
375375
TestCode = testCode,
376376
ExpectedDiagnostics = { expected },
377377
FixedCode = fixedTestCodeSingle,
378-
CodeFixIndex = 0,
378+
CodeActionIndex = 0,
379379
}.RunAsync(CancellationToken.None).ConfigureAwait(false);
380380

381381
await new CSharpTest
382382
{
383383
TestCode = testCode,
384384
ExpectedDiagnostics = { expected },
385385
FixedCode = fixedTestCodeMultiple,
386-
CodeFixIndex = 1,
386+
CodeActionIndex = 1,
387387
}.RunAsync(CancellationToken.None).ConfigureAwait(false);
388388
}
389389
}

StyleCop.Analyzers/StyleCop.Analyzers.Test/ReadabilityRules/SA1103UnitTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public void TestMethod()
116116
var test = new CSharpTest
117117
{
118118
TestCode = testCode,
119-
CodeFixIndex = 1,
119+
CodeActionIndex = 1,
120120
FixedCode = fixedTestCode,
121121
};
122122

@@ -194,7 +194,7 @@ orderby g.Key
194194
var test = new CSharpTest
195195
{
196196
TestCode = testCode,
197-
CodeFixIndex = 1,
197+
CodeActionIndex = 1,
198198
FixedCode = fixedTestCode,
199199
};
200200

@@ -300,7 +300,7 @@ public void TestMethod()
300300
var test = new CSharpTest
301301
{
302302
TestCode = testCode,
303-
CodeFixIndex = 1,
303+
CodeActionIndex = 1,
304304
FixedCode = fixedTestCode,
305305
};
306306

@@ -448,7 +448,7 @@ where element < 3
448448
new DiagnosticResult("CS0742", DiagnosticSeverity.Error).WithLocation(13, 38).WithMessage("A query body must end with a select clause or a group clause"),
449449
},
450450
},
451-
CodeFixIndex = 1,
451+
CodeActionIndex = 1,
452452
}.RunAsync(CancellationToken.None).ConfigureAwait(false);
453453
}
454454
}

StyleCop.Analyzers/StyleCop.Analyzers.Test/Verifiers/StyleCopCodeFixVerifier`2.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public CSharpTest(LanguageVersion? languageVersion)
106106
this.TestState.AdditionalReferences.Add(GenericAnalyzerTest.CSharpSymbolsReference);
107107
this.TestState.AdditionalReferences.Add(Netstandard20Reference);
108108
this.TestState.AdditionalFilesFactories.Add(GenerateSettingsFile);
109-
this.CodeFixValidationMode = CodeFixValidationMode.None;
109+
this.CodeActionValidationMode = CodeActionValidationMode.None;
110110

111111
if (languageVersion != null)
112112
{

0 commit comments

Comments
 (0)