Skip to content

Commit 02e0bdc

Browse files
committed
Use static readonly fields instead of constant array arguments (CA1861)
1 parent 6893835 commit 02e0bdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Cake.AzureDevOps.Tests/Pipelines/AzureDevOpsBuildTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public void Should_Throw_If_Input_Test_Outcomes_Are_Invalid()
101101
fixture.WorkItemTrackingClientFactory);
102102

103103
// When
104-
var result = Record.Exception(() => build.GetTestRuns(null, new[] { "FakeOutcome" }));
104+
var result = Record.Exception(() => build.GetTestRuns(null, ["FakeOutcome"]));
105105

106106
// Then
107107
result.IsArgumentException(null);

0 commit comments

Comments
 (0)