Пример #1
0
        public void GetDefaultInputHistoryLimitTest()
        {
            var terminalState = new TerminalState();
            var actual        = terminalState.GetCommandHistoryLimit();

            Assert.IsNotNull(actual);
            Assert.AreEqual(actual, 0);
        }
Пример #2
0
        public void SetInputHistoryLimitTest()
        {
            var terminalState = new TerminalState();
            var expected      = 20;
            var isLimitSet    = terminalState.TrySetCommandHistoryLimit(expected);
            var actual        = terminalState.GetCommandHistoryLimit();

            Assert.IsTrue(isLimitSet);
            Assert.AreEqual(expected, actual);
        }