15 references to First
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (14)
Completion\CompletionFeaturesTests.cs (1)
668Assert.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); 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); 1538Assert.Equal(new() { Start = new(2, 0), End = new(2, 8) }, results.ItemDefaults.EditRange.Value.First);
Diagnostics\AbstractPullDiagnosticTestsBase.cs (2)
297return [new TestDiagnosticResult(vsTextDocumentIdentifier, diagnostics.Value.First.ResultId!, diagnostics.Value.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)
178var documentEdit = results.DocumentChanges.Value.First.Single();
Symbols\WorkspaceSymbolsTests.cs (1)
81results = progress.GetValues()?.SelectMany(v => v.First).ToArray();
Microsoft.CommonLanguageServerProtocol.Framework.UnitTests (1)
ExampleTests.cs (1)
57Assert.True(result.Capabilities.SemanticTokensOptions!.Value.Unify().Range!.Value.First);