Skip to content

Commit

Permalink
Fix compile errors after API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ulrichb committed May 15, 2024
1 parent 865d078 commit f231436
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#if RESHARPER
using System.Collections.Generic;
using System.Linq;
using JetBrains.TestFramework;
using JetBrains.Util;
Expand All @@ -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<string> ExtendTestFiles(IEnumerable<string> testFiles) => testFiles.Concat(CodeBehindFileName, DesignerFileName);
}
}
#endif
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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<string> ModifyTestFiles(IEnumerable<string> testFiles) => base.ModifyTestFiles(_aspCodeBehindTestHelper.ExtendTestFiles(testFiles));
}
}
#endif
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#if RESHARPER
using System.Collections.Generic;
using JetBrains.Lifetimes;
using JetBrains.ProjectModel;
using JetBrains.ReSharper.FeaturesTestFramework.Intentions;
Expand All @@ -23,7 +24,7 @@ public class UpdateAspDesignerFileQuickFixTest : QuickFixTestBase<UpdateAspDesig

//

protected override string[] ModifyTestFiles(string[] testFiles) => base.ModifyTestFiles(_aspCodeBehindTestHelper.ExtendTestFiles(testFiles));
protected override IEnumerable<string> ModifyTestFiles(IEnumerable<string> testFiles) => base.ModifyTestFiles(_aspCodeBehindTestHelper.ExtendTestFiles(testFiles));

protected override void DoTest(Lifetime lifetime, IProject testProject)
{
Expand Down

0 comments on commit f231436

Please sign in to comment.