1 write to Session
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
AutomaticCompletion\AbstractAutomaticBraceCompletionTests.cs (1)
181
this.
Session
= session;
290 references to Session
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (229)
AutomaticCompletion\AutomaticBraceCompletionTests.cs (112)
44
CheckStart(session.
Session
);
45
CheckText(session.
Session
, expected);
71
CheckStart(session.
Session
);
72
CheckText(session.
Session
, expected);
98
CheckStart(session.
Session
);
99
CheckReturn(session.
Session
, 12, expected);
141
CheckStart(session.
Session
);
153
CheckStart(session.
Session
);
166
CheckStart(session.
Session
);
179
CheckStart(session.
Session
);
191
CheckStart(session.
Session
);
203
CheckStart(session.
Session
);
222
CheckStart(session.
Session
);
223
CheckReturn(session.
Session
, 0, expected);
304
CheckStart(session.
Session
);
320
CheckStart(session.
Session
);
336
CheckStart(session.
Session
);
352
CheckStart(session.
Session
);
363
CheckStart(session.
Session
);
374
CheckStart(session.
Session
);
375
CheckBackspace(session.
Session
);
386
CheckStart(session.
Session
);
387
CheckTab(session.
Session
);
398
CheckStart(session.
Session
);
399
CheckOverType(session.
Session
);
412
CheckStart(session.
Session
);
423
CheckStart(session.
Session
);
424
CheckReturn(session.
Session
, 4);
462
CheckStart(session.
Session
);
463
CheckText(session.
Session
, expectedBeforeReturn);
464
CheckReturn(session.
Session
, 12, expectedAfterReturn);
502
CheckStart(session.
Session
);
503
CheckText(session.
Session
, expectedBeforeReturn);
504
CheckReturn(session.
Session
, 12, expectedAfterReturn);
542
CheckStart(session.
Session
);
543
CheckText(session.
Session
, expectedBeforeReturn);
544
CheckReturn(session.
Session
, 12, expectedAfterReturn);
570
CheckStart(session.
Session
);
571
CheckText(session.
Session
, expected);
597
CheckStart(session.
Session
);
598
CheckText(session.
Session
, expected);
639
CheckStart(session.
Session
);
640
CheckText(session.
Session
, expectedBeforeReturn);
641
CheckReturn(session.
Session
, 12, expectedAfterReturn);
682
CheckStart(session.
Session
);
683
CheckText(session.
Session
, expectedBeforeReturn);
684
CheckReturn(session.
Session
, 12, expectedAfterReturn);
722
CheckStart(session.
Session
);
723
CheckText(session.
Session
, expectedBeforeReturn);
724
CheckReturn(session.
Session
, 12, expectedAfterReturn);
755
CheckStart(session.
Session
);
756
CheckReturn(session.
Session
, 12, expected);
792
CheckStart(session.
Session
);
793
CheckReturn(session.
Session
, 12, expected);
825
CheckStart(session.
Session
);
826
CheckReturn(session.
Session
, 12, expected);
868
CheckStart(session.
Session
);
869
CheckReturn(session.
Session
, 12, expected);
907
CheckStart(session.
Session
);
908
CheckReturn(session.
Session
, 12, expected);
940
CheckStart(session.
Session
);
941
CheckReturn(session.
Session
, 12, expected);
969
CheckStart(session.
Session
);
970
CheckReturn(session.
Session
, 12, expected);
1002
CheckStart(session.
Session
);
1003
CheckReturn(session.
Session
, 12, expected);
1031
CheckStart(session.
Session
);
1032
CheckReturn(session.
Session
, 12, expected);
1063
CheckStart(session.
Session
);
1064
CheckReturn(session.
Session
, 12, expected);
1092
CheckStart(session.
Session
);
1093
CheckReturn(session.
Session
, 12, expected);
1129
CheckStart(session.
Session
);
1130
Assert.Equal(expected, session.
Session
.SubjectBuffer.CurrentSnapshot.GetText());
1132
CheckReturn(session.
Session
, 4, expectedAfterReturn);
1159
CheckStart(session.
Session
);
1160
Assert.Equal(expected, session.
Session
.SubjectBuffer.CurrentSnapshot.GetText());
1195
CheckStart(session.
Session
);
1196
Assert.Equal(expected, session.
Session
.SubjectBuffer.CurrentSnapshot.GetText());
1198
CheckReturn(session.
Session
, 8, expectedAfterReturn);
1239
CheckStart(session.
Session
);
1240
Assert.Equal(expected, session.
Session
.SubjectBuffer.CurrentSnapshot.GetText());
1242
CheckReturn(session.
Session
, 8, expectedAfterReturn);
1266
CheckStart(session.
Session
);
1267
CheckText(session.
Session
, expected);
1281
CheckStart(session.
Session
);
1282
Type(session.
Session
, "dd");
1283
CheckReturn(session.
Session
, 0, expected);
1307
CheckStart(session.
Session
);
1308
Assert.Equal(expectedAfterStart, session.
Session
.SubjectBuffer.CurrentSnapshot.GetText());
1324
CheckStart(session.
Session
);
1327
var buffer = session.
Session
.SubjectBuffer;
1330
CheckReturn(session.
Session
, 4, expected);
1345
CheckStart(session.
Session
);
1346
CheckReturn(session.
Session
, 4, result: "class C\r{\r\r}");
1388
CheckStart(session.
Session
);
1389
CheckReturn(session.
Session
, 12, expected);
1432
CheckStart(session.
Session
);
1433
CheckReturn(session.
Session
, bracesOnNewLine ? 16 : 12, expected);
1476
CheckStart(session.
Session
);
1477
CheckReturn(session.
Session
, 12, expected);
1520
CheckStart(session.
Session
);
1521
CheckReturn(session.
Session
, 12, expected);
1564
CheckStart(session.
Session
);
1565
CheckReturn(session.
Session
, 12, expected);
1609
CheckStart(session.
Session
);
1610
CheckReturn(session.
Session
, 12, expected);
1660
CheckStart(session.
Session
);
1661
CheckReturn(session.
Session
, 12, expected);
1688
CheckStart(session.
Session
);
1689
Assert.Equal(expected, session.
Session
.SubjectBuffer.CurrentSnapshot.GetText());
1691
CheckReturn(session.
Session
, 0, expectedAfterReturn);
AutomaticCompletion\AutomaticBracketCompletionTests.cs (18)
33
CheckStart(session.
Session
);
42
CheckStart(session.
Session
);
125
CheckStart(session.
Session
);
141
CheckStart(session.
Session
);
157
CheckStart(session.
Session
);
173
CheckStart(session.
Session
);
185
CheckStart(session.
Session
);
197
CheckStart(session.
Session
);
198
CheckBackspace(session.
Session
);
210
CheckStart(session.
Session
);
211
CheckTab(session.
Session
);
223
CheckStart(session.
Session
);
224
CheckOverType(session.
Session
);
238
CheckStart(session.
Session
);
251
CheckStart(session.
Session
);
288
CheckStart(session.
Session
);
289
CheckText(session.
Session
, expectedBeforeReturn);
290
CheckReturn(session.
Session
, 12, expected);
AutomaticCompletion\AutomaticLessAndGreaterThanCompletionTests.cs (38)
39
CheckStart(session.
Session
, expectValidSession: false);
49
CheckStart(session.
Session
);
62
CheckStart(session.
Session
);
72
CheckStart(session.
Session
);
73
CheckBackspace(session.
Session
);
83
CheckStart(session.
Session
);
84
CheckTab(session.
Session
);
94
CheckStart(session.
Session
);
95
CheckOverType(session.
Session
);
105
CheckStart(session.
Session
, expectValidSession: false);
118
CheckStart(session.
Session
);
134
CheckStart(session.
Session
, expectValidSession: false);
149
CheckStart(session.
Session
);
164
CheckStart(session.
Session
);
177
CheckStart(session.
Session
);
178
Type(session.
Session
, "int");
179
CheckOverType(session.
Session
);
192
CheckStart(session.
Session
);
193
Type(session.
Session
, "T");
194
CheckOverType(session.
Session
);
207
CheckStart(session.
Session
);
208
Type(session.
Session
, "int");
209
CheckOverType(session.
Session
);
227
CheckStart(session.
Session
);
228
Type(session.
Session
, "int");
229
CheckOverType(session.
Session
);
245
CheckStart(session.
Session
, expectValidSession: false);
262
CheckStart(session.
Session
, expectValidSession: false);
279
CheckStart(session.
Session
, expectValidSession: false);
296
CheckStart(session.
Session
);
324
CheckStart(session.
Session
);
325
Type(session.
Session
, "int");
326
CheckOverType(session.
Session
);
362
CheckStart(session.
Session
);
396
CheckStart(session.
Session
);
409
CheckStart(session.
Session
);
410
Type(session.
Session
, "int");
411
CheckOverType(session.
Session
);
AutomaticCompletion\AutomaticLiteralCompletionTests.cs (48)
30
CheckStart(session.
Session
);
38
CheckStart(session.
Session
);
46
CheckStart(session.
Session
);
54
CheckStart(session.
Session
);
62
CheckStart(session.
Session
);
77
CheckStart(session.
Session
, expectValidSession: false);
92
CheckStart(session.
Session
);
107
CheckStart(session.
Session
);
122
CheckStart(session.
Session
);
137
CheckStart(session.
Session
);
138
CheckBackspace(session.
Session
);
153
CheckStart(session.
Session
);
154
CheckTab(session.
Session
);
169
CheckStart(session.
Session
);
170
CheckOverType(session.
Session
);
185
CheckStart(session.
Session
);
200
CheckStart(session.
Session
);
201
CheckBackspace(session.
Session
);
216
CheckStart(session.
Session
);
217
CheckTab(session.
Session
);
232
CheckStart(session.
Session
);
233
CheckOverType(session.
Session
);
248
CheckStart(session.
Session
);
263
CheckStart(session.
Session
);
264
CheckBackspace(session.
Session
);
279
CheckStart(session.
Session
);
280
CheckTab(session.
Session
);
295
CheckStart(session.
Session
);
296
CheckOverType(session.
Session
);
311
CheckStart(session.
Session
);
326
CheckStart(session.
Session
);
327
CheckBackspace(session.
Session
);
342
CheckStart(session.
Session
);
343
CheckTab(session.
Session
);
358
CheckStart(session.
Session
);
359
CheckOverType(session.
Session
);
374
CheckStart(session.
Session
);
375
CheckTab(session.
Session
);
390
CheckStart(session.
Session
);
391
CheckOverType(session.
Session
);
406
CheckStart(session.
Session
);
407
CheckBackspace(session.
Session
);
423
CheckStart(session.
Session
, expectValidSession: false);
438
CheckStart(session.
Session
, expectValidSession: false);
453
CheckStart(session.
Session
);
468
CheckStart(session.
Session
);
484
CheckStart(session.
Session
);
497
CheckStart(session.
Session
, expectValidSession: false);
AutomaticCompletion\AutomaticParenthesisCompletionTests.cs (13)
39
CheckStart(session.
Session
);
54
CheckStart(session.
Session
);
67
CheckStart(session.
Session
);
80
CheckStart(session.
Session
);
81
CheckBackspace(session.
Session
);
94
CheckStart(session.
Session
);
95
CheckTab(session.
Session
);
108
CheckStart(session.
Session
);
109
CheckOverType(session.
Session
);
125
CheckStart(session.
Session
);
141
CheckStart(session.
Session
);
156
CheckStart(session.
Session
);
177
CheckStart(session.
Session
, expectValidSession: false);
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (61)
AutomaticCompletion\AutomaticBraceCompletionTests.vb (3)
65
CheckStart(session.
Session
)
79
CheckStart(session.
Session
)
93
CheckStart(session.
Session
)
AutomaticCompletion\AutomaticBracketCompletionTests.vb (8)
28
CheckStart(session.
Session
)
36
CheckStart(session.
Session
)
83
CheckStart(session.
Session
)
84
Type(session.
Session
, "'")
85
CheckOverType(session.
Session
, allowOverType:=False)
99
CheckStart(session.
Session
)
100
Type(session.
Session
, "'")
101
CheckTab(session.
Session
)
AutomaticCompletion\AutomaticInterpolatedStringExpressionCompletionTests.vb (1)
67
CheckStart(session.
Session
)
AutomaticCompletion\AutomaticInterpolationCompletionTests.vb (3)
67
CheckStart(session.
Session
)
81
CheckStart(session.
Session
)
95
CheckStart(session.
Session
)
AutomaticCompletion\AutomaticLessAndGreaterThanCompletionTests.vb (6)
28
CheckStart(session.
Session
)
36
CheckStart(session.
Session
, expectValidSession:=False)
82
CheckStart(session.
Session
)
92
CheckStart(session.
Session
)
93
CheckOverType(session.
Session
)
108
CheckStart(session.
Session
)
AutomaticCompletion\AutomaticParenthesesCompletion.vb (26)
28
CheckStart(session.
Session
, expectValidSession:=False)
36
CheckStart(session.
Session
, expectValidSession:=False)
83
CheckStart(session.
Session
)
94
CheckStart(session.
Session
)
106
CheckStart(session.
Session
)
120
CheckStart(session.
Session
)
134
CheckStart(session.
Session
)
148
CheckStart(session.
Session
)
162
CheckStart(session.
Session
)
176
CheckStart(session.
Session
)
190
CheckStart(session.
Session
)
204
CheckStart(session.
Session
)
218
CheckStart(session.
Session
)
232
CheckStart(session.
Session
)
246
CheckStart(session.
Session
)
260
CheckStart(session.
Session
)
274
CheckStart(session.
Session
)
291
CheckStart(session.
Session
)
300
CheckStart(session.
Session
)
317
CheckStart(session.
Session
)
318
Type(session.
Session
, "0")
319
CheckOverType(session.
Session
)
336
CheckOverType(session.
Session
)
350
CheckStart(session.
Session
)
351
Type(session.
Session
, """a""")
352
CheckOverType(session.
Session
)
AutomaticCompletion\AutomaticStringLiteralCompletionTests.vb (14)
28
CheckStart(session.
Session
, expectValidSession:=False)
36
CheckStart(session.
Session
, expectValidSession:=False)
83
CheckStart(session.
Session
)
84
CheckTab(session.
Session
)
98
CheckStart(session.
Session
)
99
CheckOverType(session.
Session
)
113
CheckStart(session.
Session
)
114
CheckBackspace(session.
Session
)
128
CheckStart(session.
Session
)
129
CheckBackspace(session.
Session
)
143
CheckStart(session.
Session
)
144
CheckTab(session.
Session
)
158
CheckStart(session.
Session
)
159
CheckOverType(session.
Session
)