public void TestClassParameterInfo()
        {
            var info = new CommandClassInfo(typeof(ClassParameterCommand));

            Assert.AreEqual(1, info.Parameters.Count());
            Assert.AreEqual("numberArgument", info.Parameters.First().Name);
        }
        public void TestClassParameterType()
        {
            var info = new CommandClassInfo(typeof(ClassParameterCommand));

            Assert.AreEqual(CommandArgumentType.Keyword, info.Parameters.ToArray()[0].ArgumentType);
            Assert.AreEqual(CommandArgumentType.Keyword, info.Parameters.ToArray()[1].ArgumentType);
            Assert.AreEqual(CommandArgumentType.Flag,    info.Parameters.ToArray()[2].ArgumentType);
        }
        public void TestCommandClassInfo()
        {
            var commandInfo = new CommandClassInfo(typeof(TestMixCommand));
            var commandNoInfo = new CommandClassInfo(typeof(TestNoCommand));

            Assert.IsTrue(commandInfo.HasMainCommand);
            Assert.IsFalse(commandNoInfo.HasMainCommand);
        }
 public void TestClassParameter()
 {
     var info = new CommandClassInfo(typeof(ClassParameterCommand));
     Assert.AreEqual(1, info.Parameters.Count());
 }