Exemple #1
0
        public void CreateInstance()
        {
            _omBuilder = new OptionMapBuilder(3);
            _omBuilder.AppendOption("p", "pretend");
            _omBuilder.AppendOption(null, "newuse");
            _omBuilder.AppendOption("D", null);

            _optionMap = _omBuilder.OptionMap;
        }
Exemple #2
0
        public void CreateInstance()
        {
            _omBuilder = new OptionMapBuilder(3);
            _omBuilder.AppendOption("p", "pretend");
            _omBuilder.AppendOption(null, "newuse");
            _omBuilder.AppendOption("D", null);

            _optionMap = _omBuilder.OptionMap;
        }
        public void Manage_options()
        {
            var omBuilder = new OptionMapBuilder(3);
            omBuilder.AppendOption('p', "pretend");
            omBuilder.AppendOption("newuse");
            omBuilder.AppendOption('D', null);

            var optionMap = omBuilder.OptionMap;

            omBuilder.Options[0].Should().BeSameAs(optionMap[omBuilder.Names[0]]);
            omBuilder.Options[1].Should().BeSameAs(optionMap[omBuilder.Names[1]]);
            omBuilder.Options[2].Should().BeSameAs(optionMap[omBuilder.Names[2]]);
        }
Exemple #4
0
        public void Manage_options()
        {
            var omBuilder = new OptionMapBuilder(3);

            omBuilder.AppendOption('p', "pretend");
            omBuilder.AppendOption("newuse");
            omBuilder.AppendOption('D', null);

            var optionMap = omBuilder.OptionMap;

            omBuilder.Options[0].Should().BeSameAs(optionMap[omBuilder.Names[0]]);
            omBuilder.Options[1].Should().BeSameAs(optionMap[omBuilder.Names[1]]);
            omBuilder.Options[2].Should().BeSameAs(optionMap[omBuilder.Names[2]]);
        }