public void OptionCollection_AddLookupArgs_AddsOptionHandlerWithArgsComparer() // OPT_CH { Option option1 = new Option("name_1"); // WantsArgs = no Option option2 = new Option("name_2_"); // WantsArgs = yes OptionCollection optionCollection = new OptionCollection(); optionCollection.Add(option1); optionCollection.Add(option2); optionCollection.AddLookupArgs("name_1", "q"); optionCollection.AddLookupArgs("name_2_", "w"); Option result11 = optionCollection.LookupOption("q"); Assert.Equal(option1, result11); Option result23 = optionCollection.LookupOption("w"); Option result24 = optionCollection.LookupOption("w_"); Assert.Equal(option2, result23); Assert.Equal(option2, result24); }