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); }
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); }