Skip to content

Commit 5bea401

Browse files
committed
Update skipped tests
Missed these on the first pass because they didn't fail. Hopefully I got the fixes right :D
1 parent 0b7c1a8 commit 5bea401

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Cohost/CodeActions/GenerateEventHandlerTests.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
// Licensed under the MIT license. See License.txt in the project root for license information.
33

44
using System.Threading.Tasks;
5+
using Microsoft.CodeAnalysis.Razor.Protocol;
56
using Xunit;
67
using Xunit.Abstractions;
7-
using WorkspacesSR = Microsoft.CodeAnalysis.Razor.Workspaces.Resources.SR;
88

99
namespace Microsoft.VisualStudio.Razor.LanguageClient.Cohost.CodeActions;
1010

@@ -27,7 +27,7 @@ private void DoesNotExist(MouseEventArgs args)
2727
}
2828
""";
2929

30-
await VerifyCodeActionAsync(input, expected, WorkspacesSR.FormatGenerate_Event_Handler_Title("DoesNotExist"));
30+
await VerifyCodeActionAsync(input, expected, LanguageServerConstants.CodeActions.GenerateEventHandler);
3131
}
3232

3333
[Fact(Skip = "Need to map uri back to source generated document")]
@@ -53,7 +53,7 @@ private void DoesNotExist(MouseEventArgs args)
5353
}
5454
""";
5555

56-
await VerifyCodeActionAsync(input, expected, WorkspacesSR.FormatGenerate_Event_Handler_Title("DoesNotExist"));
56+
await VerifyCodeActionAsync(input, expected, LanguageServerConstants.CodeActions.GenerateEventHandler);
5757
}
5858

5959
[Fact(Skip = "Need to map uri back to source generated document")]
@@ -81,7 +81,7 @@ private void DoesNotExist(string args)
8181
}
8282
""";
8383

84-
await VerifyCodeActionAsync(input, expected, WorkspacesSR.FormatGenerate_Event_Handler_Title("DoesNotExist"));
84+
await VerifyCodeActionAsync(input, expected, LanguageServerConstants.CodeActions.GenerateEventHandler);
8585
}
8686

8787
[Fact(Skip = "Need to map uri back to source generated document")]
@@ -109,7 +109,7 @@ private void DoesNotExist()
109109
}
110110
""";
111111

112-
await VerifyCodeActionAsync(input, expected, WorkspacesSR.FormatGenerate_Event_Handler_Title("DoesNotExist"));
112+
await VerifyCodeActionAsync(input, expected, LanguageServerConstants.CodeActions.GenerateEventHandler);
113113
}
114114

115115
[Fact(Skip = "Need to map uri back to source generated document")]
@@ -135,7 +135,7 @@ private void DoesNotExist(InputFileChangeEventArgs args)
135135
}
136136
""";
137137

138-
await VerifyCodeActionAsync(input, expected, WorkspacesSR.FormatGenerate_Event_Handler_Title("DoesNotExist"));
138+
await VerifyCodeActionAsync(input, expected, LanguageServerConstants.CodeActions.GenerateEventHandler);
139139
}
140140

141141
[Fact(Skip = "Need to map uri back to source generated document")]
@@ -161,7 +161,7 @@ private Task DoesNotExistAsync(string args)
161161
}
162162
""";
163163

164-
await VerifyCodeActionAsync(input, expected, WorkspacesSR.FormatGenerate_Async_Event_Handler_Title("DoesNotExistAsync"));
164+
await VerifyCodeActionAsync(input, expected, LanguageServerConstants.CodeActions.GenerateAsyncEventHandler);
165165
}
166166

167167
[Fact(Skip = "Need to map uri back to source generated document")]
@@ -189,7 +189,7 @@ public partial class NotAComponent
189189
}
190190
}
191191
""")],
192-
codeActionName: WorkspacesSR.FormatGenerate_Event_Handler_Title("DoesNotExist"));
192+
codeActionName: LanguageServerConstants.CodeActions.GenerateEventHandler);
193193
}
194194

195195
[Fact(Skip = "Need to map uri back to source generated document")]
@@ -228,7 +228,7 @@ private void DoesNotExist(Microsoft.AspNetCore.Components.Web.MouseEventArgs arg
228228
}
229229
}
230230
""")],
231-
codeActionName: WorkspacesSR.FormatGenerate_Event_Handler_Title("DoesNotExist"));
231+
codeActionName: LanguageServerConstants.CodeActions.GenerateEventHandler);
232232
}
233233

234234
[Fact(Skip = "Need to map uri back to source generated document")]
@@ -261,7 +261,7 @@ private void DoesNotExist(Microsoft.AspNetCore.Components.Web.MouseEventArgs arg
261261
}
262262
}
263263
""")],
264-
codeActionName: WorkspacesSR.FormatGenerate_Event_Handler_Title("DoesNotExist"));
264+
codeActionName: LanguageServerConstants.CodeActions.GenerateEventHandler);
265265
}
266266

267267
[Fact(Skip = "Need to map uri back to source generated document")]
@@ -281,7 +281,7 @@ private Task DoesNotExist(MouseEventArgs args)
281281
}
282282
""";
283283

284-
await VerifyCodeActionAsync(input, expected, WorkspacesSR.FormatGenerate_Async_Event_Handler_Title("DoesNotExist"));
284+
await VerifyCodeActionAsync(input, expected, LanguageServerConstants.CodeActions.GenerateAsyncEventHandler);
285285
}
286286

287287
[Fact(Skip = "Need to map uri back to source generated document")]
@@ -307,6 +307,6 @@ private Task DoesNotExist(MouseEventArgs args)
307307
}
308308
""";
309309

310-
await VerifyCodeActionAsync(input, expected, WorkspacesSR.FormatGenerate_Async_Event_Handler_Title("DoesNotExist"));
310+
await VerifyCodeActionAsync(input, expected, LanguageServerConstants.CodeActions.GenerateAsyncEventHandler);
311311
}
312312
}

0 commit comments

Comments
 (0)