示例#1
0
        public void TestInsertAPI()
        {
            TestSetup(KeyMode.Cmd);

            Test("echo foo", Keys(
                     CheckThat(() =>
            {
                PSConsoleReadLine.Insert('e');
                PSConsoleReadLine.Insert(" foo");
            }),
                     _.Home, _.RightArrow,
                     CheckThat(() =>
            {
                PSConsoleReadLine.Insert('c');
                PSConsoleReadLine.Insert("ho");
            })));
        }