diff --git a/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Cohost/Shared/CohostDocumentHighlightEndpointTest.cs b/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Cohost/Shared/CohostDocumentHighlightEndpointTest.cs index da2e4daf81f..e87d96d32b4 100644 --- a/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Cohost/Shared/CohostDocumentHighlightEndpointTest.cs +++ b/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Cohost/Shared/CohostDocumentHighlightEndpointTest.cs @@ -134,7 +134,7 @@ @inject [|IDis$$posable|] Disposable @code { - [|IDisposable|].Dispose() + void Dispose([|IDisposable|] thingToDispose) { } } diff --git a/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Cohost/Shared/CohostFoldingRangeEndpointTest.cs b/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Cohost/Shared/CohostFoldingRangeEndpointTest.cs index 7d192f92e4a..609d06469c7 100644 --- a/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Cohost/Shared/CohostFoldingRangeEndpointTest.cs +++ b/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Cohost/Shared/CohostFoldingRangeEndpointTest.cs @@ -86,13 +86,13 @@ public Task IfElseStatements()
Hello World
- else {[| + } else {[|
Goodbye World
}|] - } - |] + |] } + """); [Fact] @@ -160,7 +160,7 @@ public Task CodeBlock()

hello!

@code {[| - var helloWorld = ""; + private string helloWorld = ""; }|]

hello!

@@ -172,7 +172,7 @@ public Task CodeBlock_Mvc()

hello!

@functions {[| - var helloWorld = ""; + private string helloWorld = ""; }|]

hello!

diff --git a/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Cohost/Shared/CohostGoToDefinitionEndpointTest.cs b/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Cohost/Shared/CohostGoToDefinitionEndpointTest.cs index 9f75833555d..f29821564b6 100644 --- a/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Cohost/Shared/CohostGoToDefinitionEndpointTest.cs +++ b/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Cohost/Shared/CohostGoToDefinitionEndpointTest.cs @@ -28,8 +28,9 @@ public async Task CSharp_Method() } @functions { - void [|GetX|]() + int [|GetX|]() { + return 4; } } """; @@ -248,7 +249,7 @@ public class [|AuthorViewViewComponent|] : ViewComponent { public string Invoke(int authorId) { - return firstName; + return "Steve"; } } """).Text)); diff --git a/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Cohost/Shared/CohostGoToImplementationEndpointTest.cs b/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Cohost/Shared/CohostGoToImplementationEndpointTest.cs index 058a95ce06e..30496b84a0a 100644 --- a/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Cohost/Shared/CohostGoToImplementationEndpointTest.cs +++ b/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Cohost/Shared/CohostGoToImplementationEndpointTest.cs @@ -30,8 +30,9 @@ public async Task CSharp_Method() @code { - void [|GetX|]() + int [|GetX|]() { + return 4; } } """; diff --git a/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Cohost/Shared/CohostInlayHintEndpointTest.cs b/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Cohost/Shared/CohostInlayHintEndpointTest.cs index 1fb3fb43141..54d1d2961da 100644 --- a/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Cohost/Shared/CohostInlayHintEndpointTest.cs +++ b/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Cohost/Shared/CohostInlayHintEndpointTest.cs @@ -116,6 +116,7 @@ public Task InlayHints_ComponentAttributes() + @code { private string _value = ""; } """, toolTipMap: [], output: """ @@ -125,7 +126,8 @@ public Task InlayHints_ComponentAttributes() - + + @code { private string _value = ""; } """); [Theory]