Example #1
0
 public void AddOption(Option option)
 {
     CloseIfEmptyOption(option);
     if (!IsClosed) {
         var asList = _options as Options;
         asList.Add(option);
         _options = asList;
     }
 }
 public void SetUp()
 {
     _sut = new Impl.Option("Hallo Welt");
 }
Example #3
0
 void CloseIfEmptyOption(Option option)
 {
     if (option == EMPTY)
         _isClosed = true;
 }