Esempio n. 1
0
        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);
            });
        }
Esempio n. 2
0
        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);
            });
        }
Esempio n. 3
0
 public void ShrinkSelection()
 {
     ShrinkSelectionHandler.Run();
 }