File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/Razor/test/Microsoft.VisualStudio.Razor.IntegrationTests Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
// Copyright (c) .NET Foundation. All rights reserved.
2
2
// Licensed under the MIT license. See License.txt in the project root for license information.
3
3
4
+ using System . Linq ;
4
5
using System . Threading . Tasks ;
5
6
using Xunit ;
6
7
using Xunit . Abstractions ;
@@ -26,7 +27,11 @@ public async Task RazorCodeActions_AddUsing()
26
27
var codeActions = await TestServices . Editor . InvokeCodeActionListAsync ( ControlledHangMitigatingCancellationToken ) ;
27
28
28
29
// Assert
29
- var codeActionSet = Assert . Single ( codeActions ) ;
30
+
31
+ // We expect two groups, one for Razor, one for Html
32
+ Assert . Equal ( 2 , codeActions . Count ( ) ) ;
33
+ // Razor should be first
34
+ var codeActionSet = codeActions . First ( ) ;
30
35
var usingString = $ "@using { RazorProjectConstants . BlazorProjectName } .Shared";
31
36
var codeAction = Assert . Single ( codeActionSet . Actions , a => a . DisplayText . Equals ( usingString ) ) ;
32
37
You can’t perform that action at this time.
0 commit comments