Ejemplo n.º 1
0
        public void Formats_data_table_when_last_pipe_typed()
        {
            var command   = CreateSUT();
            var inputText = _unformattedText.Replace(-2, "     |");

            var textView = CreateTextView(inputText);

            inputText.MoveCaretTo(textView, -2, -1);

            textView.SimulateType(command, '|');

            Assert.Equal(_expectedText.ToString(), textView.TextSnapshot.GetText());
        }