This commit is contained in:
David Wengier 2024-11-28 12:57:02 +11:00
Родитель 0f2d8eeac3
Коммит 98503449cd
1 изменённых файлов: 28 добавлений и 0 удалений

Просмотреть файл

@ -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()
{