public void SetUp() { var fakeCommand = MockRepository.GenerateMock <ICommand>(); accessor = new OptionAccessor(fakeCommand); accessor.ExtendOptions(new Option { Name = "list", DeclarableOnly = true, OverrideExecution = true, Permanent = true }, new Option { Name = "test" }); accessor.AddOptionValue("list", true); }