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