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);