示例#1
0
        internal void PathOption_DefaultValue_CreationTest(PathOption option, string expected)
        {
            //arange
            var cmd = new CommandLineApplication();

            option.AddTo(cmd);

            //act
            option.Validate();
            var actual = option.GetValue();

            //assert
            Assert.Equal(expected, actual);
        }
示例#2
0
        internal void PathOption_CustomValue_CreationTest(PathOption option, string argument, string expected)
        {
            //arange
            var cmd = new CommandLineApplication();

            option.AddTo(cmd);
            cmd.Options[0].Values.Add(argument);

            //act
            option.Validate();
            var actual = option.GetValue();

            //assert
            Assert.Equal(expected, actual);
        }