Пример #1
0
 public void Init()
 {
     history = new CommandLineHistory();
     history.Add("a");
     history.Add("b");
     history.Add("c");
 }
Пример #2
0
        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());
 }