зеркало из https://github.com/dotnet/razor.git
Add test for indented usings
This commit is contained in:
Родитель
0f2d8eeac3
Коммит
98503449cd
|
@ -896,6 +896,34 @@ public class CohostCodeActionsEndpointTest(ITestOutputHelper testOutputHelper) :
|
|||
""")]);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task PromoteUsingDirective_Indented()
|
||||
{
|
||||
await VerifyCodeActionAsync(
|
||||
input: """
|
||||
<div>
|
||||
@using [||]System
|
||||
</div>
|
||||
|
||||
<div>
|
||||
Hello World
|
||||
</div>
|
||||
""",
|
||||
expected: """
|
||||
<div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
Hello World
|
||||
</div>
|
||||
""",
|
||||
codeActionName: LanguageServerConstants.CodeActions.PromoteUsingDirective,
|
||||
additionalExpectedFiles: [
|
||||
(FileUri(@"..\_Imports.razor"), """
|
||||
@using System
|
||||
""")]);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task PromoteUsingDirective_Mvc()
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче