public override void Execute(StepState state) { state.Window.Activate(); if (_submits) { // This input causes the previous input to be executed... state.Content.Append("\r\n>>> "); } state.Content.Append(_input); state.Content.Append("\r\n"); if (_output != null) { state.Content.Append(_output); state.Content.Append("\r\n"); } if (_continues) { state.Content.Append("... "); } else { state.Content.Append(">>> "); } state.App.SendToInteractive(); if (_checkOutput) { state.CheckOutput(); } }
public override void Execute(StepState state) { state.Window.Activate(); state.App.SendToInteractive(); state.CheckOutput(); }
public override void Execute(StepState state) { var curLine = state.Document.Caret.Position.BufferPosition.GetContainingLine(); Assert.AreEqual(_targetLine, curLine.LineNumber + 1); state.CheckOutput(); }
public override void Execute(StepState state) { var curSnapshot = state.Document.TextBuffer.CurrentSnapshot; var start = curSnapshot.GetLineFromLineNumber(_startLine - 1).Start + _startColumn - 1; var end = curSnapshot.GetLineFromLineNumber(_endLine - 1).Start + _endColumn - 1; state.Content.Append(_text); state.Editor.Select( _startLine, _startColumn, end - start ); state.App.SendToInteractive(); if (_checkOutput) { state.CheckOutput(); } }