25 references to First
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (15)
Completion\CompletionFeaturesTests.cs (1)
669Assert.Equal(new() { Start = new(2, 0), End = caret.Range.Start }, results.ItemDefaults.EditRange.Value.First);
Completion\CompletionResolveTests.cs (4)
126""", results.TextEdit.Value.First.NewText); 175""", results.TextEdit.Value.First.NewText); 390Assert.Equal("static void Main(string[] args)\r\n {\r\n \r\n }", results.TextEdit.Value.First.NewText.NormalizeLineEndings()); 393Assert.Equal(editRange, results.TextEdit.Value.First.Range);
Completion\CompletionTests.cs (3)
109Assert.Equal(expectedCommitCharacters, vsCompletionList.CommitCharacters.Value.First); 158Assert.Equal(expectedCommitCharacters, vsCompletionList.CommitCharacters.Value.First); 1598Assert.Equal(new() { Start = new(2, 0), End = new(2, 8) }, results.ItemDefaults.EditRange.Value.First);
Diagnostics\AbstractPullDiagnosticTestsBase.cs (3)
281Assert.Empty(diagnostics.First.Items); 293return [new TestDiagnosticResult(vsTextDocumentIdentifier, diagnostics.First.ResultId!, diagnostics.First.Items)];
InlayHint\AbstractInlayHintTests.cs (1)
50AssertEx.Equal(name, matchingInlayHint.Label.First.TrimEnd(':'));
MapCode\MapCodeTests.cs (1)
107var textDocumentEdits = results.DocumentChanges!.Value.First.Single();
Rename\RenameTests.cs (1)
188var documentEdit = results.DocumentChanges.Value.First.Single();
Symbols\WorkspaceSymbolsTests.cs (1)
81results = progress.GetValues()?.SelectMany(v => v.First).ToArray();
Microsoft.CodeAnalysis.Razor.Workspaces.UnitTests (1)
Completion\CompletionListOptimizerTest.cs (1)
44var commitCharacter = Assert.Single(vsCompletionList.CommitCharacters.Value.First);
Microsoft.CommonLanguageServerProtocol.Framework.UnitTests (1)
ExampleTests.cs (1)
57Assert.True(result.Capabilities.SemanticTokensOptions!.Value.Unify().Range!.Value.First);
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (6)
Cohost\CohostTextPresentationEndpointTest.cs (2)
76Assert.Equal(expected, ((TextEdit)result.DocumentChanges.Value.First[0].Edits[0]).NewText); 77Assert.Equal(document.GetURI(), result.DocumentChanges.Value.First[0].TextDocument.DocumentUri);
Cohost\CohostUriPresentationEndpointTest.cs (2)
271Assert.Equal(expected, ((TextEdit)result.DocumentChanges.Value.First[0].Edits[0]).NewText); 272Assert.Equal(document.GetURI(), result.DocumentChanges.Value.First[0].TextDocument.DocumentUri);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostGoToImplementationEndpointTest.cs (1)
140var locations = result.Value.First;
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostInlayHintEndpointTest.cs (1)
225var label = hint.Label.First.TrimEnd(':');
Microsoft.VisualStudioCode.RazorExtension.UnitTests (2)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostGoToImplementationEndpointTest.cs (1)
140var locations = result.Value.First;
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostInlayHintEndpointTest.cs (1)
225var label = hint.Label.First.TrimEnd(':');