Exemple #1
0
        public void Get_name_from_option_specification()
        {
            const string ShortName = "s";
            const string LongName  = "long";

            // Fixture setup
            var expected = new NameInfo(ShortName, LongName);
            var spec     = new OptionSpecification(ShortName, LongName, false, string.Empty, Maybe.Nothing <int>(), Maybe.Nothing <int>(), '.', null, string.Empty, string.Empty, new List <string>(), typeof(IEnumerable <string>), TargetType.Sequence, string.Empty);

            // Exercize system
            var result = spec.FromOptionSpecification();

            // Verify outcome
            expected.Should().BeEquivalentTo(result);

            // Teardown
        }