public void Init() { history = new CommandLineHistory(); history.Add("a"); history.Add("b"); history.Add("c"); }
public void AddLineAfterMovePrevious() { history.MovePrevious(); history.MovePrevious(); history.Add("d"); Assert.IsNull(history.Current); }
public void IgnoreSameCommandLineEntered() { history.Add("a"); history.MovePrevious(); Assert.IsFalse(history.MovePrevious()); }