예제 #1
0
        public void ThrowExceptionIfNoOptions()
        {
            var processor = new CLIProcessor();

            IUIOption option = processor.FindOption(new CLICommand("foobar"));
            //Asert exception
        }
예제 #2
0
        public void CommandFoundNoEvents()
        {
            var processor = new CLIProcessor();

            processor.OptionCollection = UIOptionCollection.ToCollection(new UIOption("foobar", c => { }));

            IUIOption option = processor.FindOption(new CLICommand("foobar"));

            Assert.AreNotEqual(null, option);
        }
예제 #3
0
        public void NoCommandToFind()
        {
            var processor = new CLIProcessor();

            processor.OptionCollection = new UIOptionCollection();
            //
            IUIOption option = processor.FindOption(new CLICommand("foobar"));

            Assert.AreEqual(null, option);
        }