protected void TestWrongContext(CodeRefactoringProvider action, string input) { Document doc; RefactoringEssentials.Tests.CSharp.Diagnostics.CSharpDiagnosticTestBase.TestWorkspace workspace; var actions = GetActions(action, input, out workspace, out doc); Assert.True(actions == null || actions.Count == 0, action.GetType() + " shouldn't be valid there."); }
protected void TestWrongContext(CodeRefactoringProvider action, string input) { var actions = GetActions(action, input, out _, out _); Assert.True(actions == null || actions.Count == 0, action.GetType() + " shouldn't be valid there."); }
public bool IsDisallowed(CodeRefactoringProvider provider) { return(IsDisallowed(provider.GetType().FullName)); }