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

Mark tests as skip

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