Skip to content

Commit 5fd3bc2

Browse files
committed
Fix test maybe hopefully
1 parent ec97e18 commit 5fd3bc2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Razor/test/Microsoft.VisualStudio.Razor.IntegrationTests/RazorCodeActionsTests.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the MIT license. See License.txt in the project root for license information.
33

4+
using System.Linq;
45
using System.Threading.Tasks;
56
using Xunit;
67
using Xunit.Abstractions;
@@ -26,7 +27,11 @@ public async Task RazorCodeActions_AddUsing()
2627
var codeActions = await TestServices.Editor.InvokeCodeActionListAsync(ControlledHangMitigatingCancellationToken);
2728

2829
// 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();
3035
var usingString = $"@using {RazorProjectConstants.BlazorProjectName}.Shared";
3136
var codeAction = Assert.Single(codeActionSet.Actions, a => a.DisplayText.Equals(usingString));
3237

0 commit comments

Comments
 (0)