22// Licensed under the MIT license. See License.txt in the project root for license information.
33
44using System . Threading . Tasks ;
5+ using Microsoft . CodeAnalysis . Razor . Protocol ;
56using Xunit ;
67using Xunit . Abstractions ;
7- using WorkspacesSR = Microsoft . CodeAnalysis . Razor . Workspaces . Resources . SR ;
88
99namespace 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