public async Task TestBug59918() { await CheckAutoBracket(@" class FooBar { public static void Main (string[] args) { var i = 5 +@ 6; } }", async doc => { ExpandSelectionHandler.Run(doc); await ShrinkSelectionHandler.Run(doc); await ShrinkSelectionHandler.Run(doc); }); }
public async Task TestShrinkselection() { await CheckAutoBracket(@" class FooBar { public static void Main (string[] args) { var i = 5 +@ 6; } }", async doc => { ExpandSelectionHandler.Run(doc); var selection = doc.Editor.SelectionRange; ExpandSelectionHandler.Run(doc); await ShrinkSelectionHandler.Run(doc); Assert.AreEqual(selection, doc.Editor.SelectionRange); }); }
public void ShrinkSelection() { ShrinkSelectionHandler.Run(); }