public void TestGetOptionSuccess(string[] args) { InputDefinition reqs = new InputDefinition(); reqs.AddOption(new InputOption("first", "f", InputOptionValueMode.Required)); Assert.NotNull(reqs.GetOption("first")); BaseInput input = new BaseInput(args); input.Bind(reqs); Assert.True(input.HasOption("first"), "The input is missing the option first"); Assert.Equal(input.GetOption("first"), "the first"); }