1 write to SnippetExpansionClient
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
Snippets\SnippetTestState.vb (1)
57
SnippetExpansionClient
= CType(snippetExpansionClientFactory.GetOrCreateSnippetExpansionClient(SubjectBuffer.AsTextContainer().GetOpenDocumentInCurrentContext(), TextView, SubjectBuffer), MockSnippetExpansionClient)
55 references to SnippetExpansionClient
Microsoft.VisualStudio.LanguageServices.UnitTests (55)
Snippets\CSharpSnippetCommandHandlerTests.vb (23)
20
testState.
SnippetExpansionClient
.TryInsertExpansionReturnValue = True
23
Assert.True(testState.
SnippetExpansionClient
.TryInsertExpansionCalled)
24
Assert.Equal(New Span(7, 5), testState.
SnippetExpansionClient
.InsertExpansionSpan)
34
testState.
SnippetExpansionClient
.TryInsertExpansionReturnValue = True
37
Assert.True(testState.
SnippetExpansionClient
.TryInsertExpansionCalled)
38
Assert.Equal(New Span(0, 3), testState.
SnippetExpansionClient
.InsertExpansionSpan)
48
testState.
SnippetExpansionClient
.TryInsertExpansionReturnValue = False
51
Assert.True(testState.
SnippetExpansionClient
.TryInsertExpansionCalled)
63
Assert.True(testState.
SnippetExpansionClient
.TryHandleTabCalled)
64
Assert.False(testState.
SnippetExpansionClient
.TryInsertExpansionCalled)
76
Assert.True(testState.
SnippetExpansionClient
.TryInsertExpansionCalled)
88
Assert.False(testState.
SnippetExpansionClient
.TryInsertExpansionCalled)
110
Assert.False(testState.
SnippetExpansionClient
.TryInsertExpansionCalled)
122
Assert.True(testState.
SnippetExpansionClient
.TryHandleBackTabCalled)
165
Assert.True(testState.
SnippetExpansionClient
.TryHandleEscapeCalled)
195
Assert.False(testState.
SnippetExpansionClient
.TryInsertExpansionCalled)
213
Assert.False(testState.
SnippetExpansionClient
.TryInsertExpansionCalled)
222
testState.
SnippetExpansionClient
.TryInsertExpansionReturnValue = True
225
Assert.False(testState.
SnippetExpansionClient
.TryInsertExpansionCalled)
240
testState.
SnippetExpansionClient
.TryInsertExpansionReturnValue = True
244
Assert.False(testState.
SnippetExpansionClient
.TryInsertExpansionCalled)
259
testState.
SnippetExpansionClient
.TryInsertExpansionReturnValue = True
263
Assert.False(testState.
SnippetExpansionClient
.TryInsertExpansionCalled)
Snippets\SnippetCompletionProviderTests.vb (2)
38
Assert.True(testState.
SnippetExpansionClient
.TryInsertExpansionCalled)
56
Assert.True(testState.
SnippetExpansionClient
.TryInsertExpansionCalled)
Snippets\SnippetTestState.vb (4)
60
SnippetExpansionClient
.TryHandleTabReturnValue = True
61
SnippetExpansionClient
.TryHandleBackTabReturnValue = True
62
SnippetExpansionClient
.TryHandleEscapeReturnValue = True
63
SnippetExpansionClient
.TryHandleReturnReturnValue = True
Snippets\VisualBasicSnippetCommandHandlerTests.vb (26)
21
testState.
SnippetExpansionClient
.TryInsertExpansionReturnValue = True
24
Assert.True(testState.
SnippetExpansionClient
.TryInsertExpansionCalled)
25
Assert.Equal(New Span(7, 5), testState.
SnippetExpansionClient
.InsertExpansionSpan)
37
Assert.True(testState.
SnippetExpansionClient
.TryInsertExpansionCalled)
49
Assert.False(testState.
SnippetExpansionClient
.TryInsertExpansionCalled)
61
Assert.True(testState.
SnippetExpansionClient
.TryHandleTabCalled)
73
Assert.True(testState.
SnippetExpansionClient
.TryInsertExpansionCalled)
85
Assert.False(testState.
SnippetExpansionClient
.TryInsertExpansionCalled)
107
Assert.False(testState.
SnippetExpansionClient
.TryInsertExpansionCalled)
144
Assert.True(testState.
SnippetExpansionClient
.TryHandleBackTabCalled)
165
Assert.True(testState.
SnippetExpansionClient
.TryHandleBackTabCalled)
186
Assert.True(testState.
SnippetExpansionClient
.TryHandleReturnCalled)
207
Assert.False(testState.
SnippetExpansionClient
.TryInsertExpansionCalled)
229
Assert.True(testState.
SnippetExpansionClient
.TryHandleEscapeCalled)
250
Assert.True(testState.
SnippetExpansionClient
.TryHandleEscapeCalled)
274
Assert.False(testState.
SnippetExpansionClient
.TryInsertExpansionCalled)
291
Assert.False(testState.
SnippetExpansionClient
.TryInsertExpansionCalled)
308
Assert.False(testState.
SnippetExpansionClient
.TryInsertExpansionCalled)
325
Assert.False(testState.
SnippetExpansionClient
.TryInsertExpansionCalled)
341
Assert.False(testState.
SnippetExpansionClient
.TryInsertExpansionCalled)
357
Assert.False(testState.
SnippetExpansionClient
.TryInsertExpansionCalled)
369
Assert.False(testState.
SnippetExpansionClient
.TryInsertExpansionCalled)
378
testState.
SnippetExpansionClient
.TryInsertExpansionReturnValue = True
381
Assert.False(testState.
SnippetExpansionClient
.TryInsertExpansionCalled)
396
testState.
SnippetExpansionClient
.TryInsertExpansionReturnValue = True
400
Assert.False(testState.
SnippetExpansionClient
.TryInsertExpansionCalled)