From 744ec6b310864d967d01033e827ff9b295559137 Mon Sep 17 00:00:00 2001 From: Pascal Berger Date: Fri, 22 Nov 2024 21:13:37 +0100 Subject: [PATCH] Simplify collection initialization (IDE0028) --- .../Fakes/FakeAllSetBuildClientFactory.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Cake.AzureDevOps.Tests/Fakes/FakeAllSetBuildClientFactory.cs b/src/Cake.AzureDevOps.Tests/Fakes/FakeAllSetBuildClientFactory.cs index d8aeb737..fc26d25f 100644 --- a/src/Cake.AzureDevOps.Tests/Fakes/FakeAllSetBuildClientFactory.cs +++ b/src/Cake.AzureDevOps.Tests/Fakes/FakeAllSetBuildClientFactory.cs @@ -32,10 +32,10 @@ public override BuildHttpClient CreateBuildClient(Uri collectionUrl, IAzureDevOp }); mock.Setup(arg => arg.GetBuildWorkItemsRefsAsync(It.IsAny(), It.IsAny(), It.IsAny(), null, default)) - .ReturnsAsync((string _, int _, int? _, object _, CancellationToken _) => new List - { + .ReturnsAsync((string _, int _, int? _, object _, CancellationToken _) => + [ new() { Id = "42" }, - }); + ]); mock = this.Setup(mock);