Exemple #1
0
        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.");
        }
Exemple #2
0
        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.");
        }
Exemple #3
0
 public bool IsDisallowed(CodeRefactoringProvider provider)
 {
     return(IsDisallowed(provider.GetType().FullName));
 }