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