public void ThrowExceptionIfNoOptions() { var processor = new CLIProcessor(); IUIOption option = processor.FindOption(new CLICommand("foobar")); //Asert exception }
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); }
public void NoCommandToFind() { var processor = new CLIProcessor(); processor.OptionCollection = new UIOptionCollection(); // IUIOption option = processor.FindOption(new CLICommand("foobar")); Assert.AreEqual(null, option); }