提交 eb7fbf72 编写于 作者: A Andrew Hall (METAL)

Mark tests as skip

上级 2083dc22
...@@ -155,14 +155,11 @@ internal override bool ShouldIncludeAccessibilityModifier(SyntaxNode typeNode) ...@@ -155,14 +155,11 @@ internal override bool ShouldIncludeAccessibilityModifier(SyntaxNode typeNode)
var interfaceTypeSyntax = GetTypeSyntaxFromNamedSymbol(extractedInterfaceSymbol); var interfaceTypeSyntax = GetTypeSyntaxFromNamedSymbol(extractedInterfaceSymbol);
var codeGenService = solution.Workspace.Services.GetLanguageServices("C#").GetService<ICodeGenerationService>(); var codeGenService = solution.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetService<ICodeGenerationService>();
var interfaceNode = codeGenService.CreateNamedTypeDeclaration(extractedInterfaceSymbol); var interfaceNode = codeGenService.CreateNamedTypeDeclaration(extractedInterfaceSymbol);
editor.InsertBefore(typeDeclaration, interfaceNode); editor.InsertBefore(typeDeclaration, interfaceNode);
//currentRoot = editor.GetChangedRoot();
//typeDeclaration = currentRoot.GetCurrentNode(typeDeclaration);
var updatedDeclaration = UpdateTypeWithInterface(extractedInterfaceSymbol, typeNodeAnnotation, typeDeclaration); var updatedDeclaration = UpdateTypeWithInterface(extractedInterfaceSymbol, typeNodeAnnotation, typeDeclaration);
editor.ReplaceNode(typeDeclaration, updatedDeclaration); editor.ReplaceNode(typeDeclaration, updatedDeclaration);
......
...@@ -77,10 +77,10 @@ End Sub ...@@ -77,10 +77,10 @@ End Sub
ExtractInterfaceDialog.ClickCancel(); ExtractInterfaceDialog.ClickCancel();
} }
[WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsExtractInterface)] [WpfFact(Skip = "Work in progress"), Trait(Traits.Feature, Traits.Features.CodeActionsExtractInterface)]
public void CheckSameFile() public void CheckSameFile()
{ {
SetUpEditor(@"Class C2$$ SetUpEditor(@"Class C$$
Public Sub M() Public Sub M()
End Sub End Sub
End Class"); End Class");
...@@ -109,10 +109,10 @@ End Sub ...@@ -109,10 +109,10 @@ End Sub
} }
[WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsExtractInterface)] [WpfFact(Skip = "Work in progress"), Trait(Traits.Feature, Traits.Features.CodeActionsExtractInterface)]
public void CheckSameFileOnlySelectedItems() public void CheckSameFileOnlySelectedItems()
{ {
SetUpEditor(@"Class C2$$ SetUpEditor(@"Class C$$
Public Sub M1() Public Sub M1()
Public Sub M2() Public Sub M2()
End Sub End Sub
...@@ -142,43 +142,41 @@ End Sub ...@@ -142,43 +142,41 @@ End Sub
End Class"); End Class");
} }
// [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsExtractInterface)] [WpfFact(Skip = "Work in progress"), Trait(Traits.Feature, Traits.Features.CodeActionsExtractInterface)]
// public void CheckSameFileNamespace() public void CheckSameFileNamespace()
// { {
// SetUpEditor(@"namespace A SetUpEditor(@"Namespace A
//{ Class C$$
// class C$$ Public Sub M()
// { End Sub
// public void M() { } End Class
// } End Namespace");
//}
//"); VisualStudio.Editor.InvokeCodeActionList();
// VisualStudio.Editor.InvokeCodeActionList(); VisualStudio.Editor.Verify.CodeAction("Extract Interface...",
// VisualStudio.Editor.Verify.CodeAction("Extract Interface...", applyFix: true,
// applyFix: true, blockUntilComplete: false);
// blockUntilComplete: false);
ExtractInterfaceDialog.VerifyOpen();
// ExtractInterfaceDialog.VerifyOpen();
ExtractInterfaceDialog.SelectSameFile();
// ExtractInterfaceDialog.SelectSameFile();
ExtractInterfaceDialog.ClickOK();
// ExtractInterfaceDialog.ClickOK(); ExtractInterfaceDialog.VerifyClosed();
// ExtractInterfaceDialog.VerifyClosed();
var project = new ProjectUtils.Project(ProjectName);
// var project = new ProjectUtils.Project(ProjectName); VisualStudio.Editor.Verify.TextContains(@"Namespace A
// VisualStudio.Editor.Verify.TextContains(@"namespace A Interface IC
//{ Sub M()
// interface IC End Interface
// {
// void M(); Class C
// } Implements IC
Public Sub M() Implements IC.M
// class C : IC End Sub
// { End Class
// public void M() { } End Namespace
// } ");
//}
//");
} }
} }
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册