Example #1
0
        public void Command_WithAlias_CalledByAlias_Functions()
        {
            var expected = "Does some thing.";

            global.ExecuteCommand("test verbone");

            Assert.IsTrue(CrestronConsole.Messages.ToString().Contains(expected));
        }
Example #2
0
        public void DuplicateFlag_WritesError()
        {
            var c = new InvalidInternals();

            underTest.AddCommand(c);

            underTest.ExecuteCommand("cmd v -f -f -f -f");

            Assert.IsTrue(testWriter.Contains("Duplicate operand or flag names are not allowed!"));
            Assert.IsFalse(testWriter.Contains("NOTHING"));
        }