From f231436c5dd46a2ff072acd641d4fa76902290ce Mon Sep 17 00:00:00 2001 From: Ulrich Buchgraber Date: Wed, 15 May 2024 05:32:26 +0200 Subject: [PATCH] Fix compile errors after API changes --- .../UpdateAspDesignerFiles/AspCodeBehindTestHelper.cs | 3 ++- .../UpdateAspDesignerFileContextActionTest.cs | 3 ++- .../UpdateAspDesignerFileQuickFixTest.cs | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Src/Roflcopter.Plugin.Tests/UpdateAspDesignerFiles/AspCodeBehindTestHelper.cs b/Src/Roflcopter.Plugin.Tests/UpdateAspDesignerFiles/AspCodeBehindTestHelper.cs index 86644d8..7b0f7d7 100644 --- a/Src/Roflcopter.Plugin.Tests/UpdateAspDesignerFiles/AspCodeBehindTestHelper.cs +++ b/Src/Roflcopter.Plugin.Tests/UpdateAspDesignerFiles/AspCodeBehindTestHelper.cs @@ -1,4 +1,5 @@ #if RESHARPER +using System.Collections.Generic; using System.Linq; using JetBrains.TestFramework; using JetBrains.Util; @@ -17,7 +18,7 @@ public AspCodeBehindTestHelper(BaseTest test) private string CodeBehindFileName => _test.TestMethodName + ".aspx.cs"; public string DesignerFileName => _test.TestMethodName + ".aspx.designer.cs"; - public string[] ExtendTestFiles(string[] testFiles) => testFiles.Concat(CodeBehindFileName, DesignerFileName).ToArray(); + public IEnumerable ExtendTestFiles(IEnumerable testFiles) => testFiles.Concat(CodeBehindFileName, DesignerFileName); } } #endif diff --git a/Src/Roflcopter.Plugin.Tests/UpdateAspDesignerFiles/UpdateAspDesignerFileContextActionTest.cs b/Src/Roflcopter.Plugin.Tests/UpdateAspDesignerFiles/UpdateAspDesignerFileContextActionTest.cs index 7b5d434..174ad44 100644 --- a/Src/Roflcopter.Plugin.Tests/UpdateAspDesignerFiles/UpdateAspDesignerFileContextActionTest.cs +++ b/Src/Roflcopter.Plugin.Tests/UpdateAspDesignerFiles/UpdateAspDesignerFileContextActionTest.cs @@ -1,5 +1,6 @@ #if RESHARPER using System; +using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using JetBrains.ReSharper.FeaturesTestFramework.Intentions; using JetBrains.ReSharper.TestFramework; @@ -31,7 +32,7 @@ public class UpdateAspDesignerFileContextActionTest : AspContextActionExecuteTes [ExcludeFromCodeCoverage] protected override string ExtraPath => throw new NotSupportedException(); - protected override string[] ModifyTestFiles(string[] testFiles) => base.ModifyTestFiles(_aspCodeBehindTestHelper.ExtendTestFiles(testFiles)); + protected override IEnumerable ModifyTestFiles(IEnumerable testFiles) => base.ModifyTestFiles(_aspCodeBehindTestHelper.ExtendTestFiles(testFiles)); } } #endif diff --git a/Src/Roflcopter.Plugin.Tests/UpdateAspDesignerFiles/UpdateAspDesignerFileQuickFixTest.cs b/Src/Roflcopter.Plugin.Tests/UpdateAspDesignerFiles/UpdateAspDesignerFileQuickFixTest.cs index c64c078..b536008 100644 --- a/Src/Roflcopter.Plugin.Tests/UpdateAspDesignerFiles/UpdateAspDesignerFileQuickFixTest.cs +++ b/Src/Roflcopter.Plugin.Tests/UpdateAspDesignerFiles/UpdateAspDesignerFileQuickFixTest.cs @@ -1,4 +1,5 @@ #if RESHARPER +using System.Collections.Generic; using JetBrains.Lifetimes; using JetBrains.ProjectModel; using JetBrains.ReSharper.FeaturesTestFramework.Intentions; @@ -23,7 +24,7 @@ public class UpdateAspDesignerFileQuickFixTest : QuickFixTestBase base.ModifyTestFiles(_aspCodeBehindTestHelper.ExtendTestFiles(testFiles)); + protected override IEnumerable ModifyTestFiles(IEnumerable testFiles) => base.ModifyTestFiles(_aspCodeBehindTestHelper.ExtendTestFiles(testFiles)); protected override void DoTest(Lifetime lifetime, IProject testProject) {