Skip to content

Commit

Permalink
Fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mu88 committed Dec 8, 2021
1 parent 53e8588 commit fa87294
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using JetBrains.IDE.UI.Extensions;
using JetBrains.IDE.UI.Options;
using JetBrains.Lifetimes;
using JetBrains.ReSharper.UnitTestFramework;
using JetBrains.ReSharper.UnitTestFramework.UI.Options;

namespace ReSharperPlugin.TestLinker2.Options
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using JetBrains.Application.Settings;
using JetBrains.ReSharper.UnitTestFramework;
using JetBrains.ReSharper.UnitTestFramework.Settings;

namespace ReSharperPlugin.TestLinker2.Options
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
using System.Linq;
using JetBrains.Lifetimes;
using JetBrains.ReSharper.Psi;
using JetBrains.ReSharper.UnitTestFramework;
using JetBrains.ReSharper.UnitTestFramework.Execution;
using JetBrains.ReSharper.UnitTestFramework.Features;
using JetBrains.Util;
using ReSharperPlugin.TestLinker2.Utils;

Expand All @@ -11,13 +12,13 @@ namespace ReSharperPlugin.TestLinker2.UnitTesting
[PsiComponent]
internal class LinkedTestInvalidator
{
private readonly IUnitTestElementStuff _unitTestElementStuff;
private readonly IUnitTestPsiManager _unitTestElementStuff;
private readonly IUnitTestResultManager _unitTestResultManager;

public LinkedTestInvalidator(
Lifetime lifetime,
ChangedTypesProvider changedTypesProvider,
IUnitTestElementStuff unitTestElementStuff,
IUnitTestPsiManager unitTestElementStuff,
IUnitTestResultManager unitTestResultManager)
{
_unitTestElementStuff = unitTestElementStuff;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
using JetBrains.Application.DataContext;
using JetBrains.Lifetimes;
using JetBrains.ProjectModel;
using JetBrains.ReSharper.UnitTestFramework;
using JetBrains.ReSharper.UnitTestFramework.Common;
using JetBrains.ReSharper.UnitTestFramework.Actions;
using JetBrains.ReSharper.UnitTestFramework.Criteria;
using JetBrains.ReSharper.UnitTestFramework.Execution.Launch;
using JetBrains.ReSharper.UnitTestFramework.Features;
using JetBrains.Util;
using ReSharperPlugin.TestLinker2.Utils;

Expand All @@ -13,18 +14,18 @@ namespace ReSharperPlugin.TestLinker2.UnitTesting
[SolutionComponent]
public class LinkedTypeUnitTestsDataRuleRegistrar
{
private readonly IUnitTestElementStuff _unitTestElementStuff;
private readonly IUnitTestPsiManager _unitTestElementStuff;

public LinkedTypeUnitTestsDataRuleRegistrar(
Lifetime lifetime,
DataContexts dataContexts,
IUnitTestElementStuff unitTestElementStuff)
IUnitTestPsiManager unitTestElementStuff)
{
_unitTestElementStuff = unitTestElementStuff;

var dataRule = new DataRule<UnitTestElements>.DesperateDataRule(
"ProjectModelToUnitTestElements",
UnitTestDataConstants.UnitTestElements.SELECTED,
UnitTestDataConstants.Elements.SELECTED,
LinkedTypeUnitTestsDataRule);

dataContexts.RegisterDataRule(lifetime, dataRule);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
using JetBrains.ReSharper.Psi.Tree;
using JetBrains.ReSharper.Psi.Util;
using JetBrains.ReSharper.Resources.Shell;
using JetBrains.ReSharper.UnitTestFramework;
using JetBrains.ReSharper.UnitTestFramework.Elements;
using JetBrains.ReSharper.UnitTestFramework.Features;
using JetBrains.TextControl;
using JetBrains.Util;

Expand Down Expand Up @@ -52,7 +53,7 @@ public static void TryCreateTestOrProductionClass(ITypeElement sourceType, IText
var linkedTypeSourceFile = templateLinkedType.GetSingleOrDefaultSourceFile()
.NotNull("linkedTypeSourceFile != null");
var linkedTypeProject = linkedTypeSourceFile.GetProject().NotNull("linkedTypeProject != null");
var linkedTypeKind = !solution.GetComponent<IUnitTestElementStuff>()
var linkedTypeKind = !solution.GetComponent<IUnitTestPsiManager>()
.IsElementOfKind(templateLinkedType, UnitTestElementKind.TestContainer)
? TypeKind.Production
: TypeKind.Test;
Expand Down

0 comments on commit fa87294

Please sign in to comment.