@@ -8,14 +8,14 @@ namespace J4JCommandLine.Tests
88 public class ListPropertyTest
99 {
1010 [ Theory ]
11- [ InlineData ( "-z 32 33" , true , MappingResult . MissingRequired , new int [ ] { } , new int [ ] { 33 } ) ]
12- [ InlineData ( "-x 32 33" , true , MappingResult . Success , new int [ ] { 32 } , new int [ ] { 33 } ) ]
13- [ InlineData ( "-z 32 33" , false , MappingResult . Success , new int [ ] { } , new int [ ] { 33 } ) ]
14- [ InlineData ( "-x 32 -x 33" , true , MappingResult . Success , new int [ ] { 32 , 33 } , new int [ ] { } ) ]
11+ [ InlineData ( "-z 32 33" , true , false , new int [ ] { } , new int [ ] { 33 } ) ]
12+ [ InlineData ( "-x 32 33" , true , true , new int [ ] { 32 } , new int [ ] { 33 } ) ]
13+ [ InlineData ( "-z 32 33" , false , true , new int [ ] { } , new int [ ] { 33 } ) ]
14+ [ InlineData ( "-x 32 -x 33" , true , true , new int [ ] { 32 , 33 } , new int [ ] { } ) ]
1515 public void root_properties (
1616 string cmdLine ,
1717 bool required ,
18- MappingResult result ,
18+ bool result ,
1919 int [ ] optValue ,
2020 int [ ] unkeyedValues )
2121 {
@@ -28,14 +28,14 @@ public void root_properties(
2828 }
2929
3030 [ Theory ]
31- [ InlineData ( "-z 32 33" , true , MappingResult . MissingRequired , new int [ ] { } , new int [ ] { 33 } ) ]
32- [ InlineData ( "-x 32 33" , true , MappingResult . Success , new int [ ] { 32 } , new int [ ] { 33 } ) ]
33- [ InlineData ( "-z 32 33" , false , MappingResult . Success , new int [ ] { } , new int [ ] { 33 } ) ]
34- [ InlineData ( "-x 32 -x 33" , true , MappingResult . Success , new int [ ] { 32 , 33 } , new int [ ] { } ) ]
31+ [ InlineData ( "-z 32 33" , true , false , new int [ ] { } , new int [ ] { 33 } ) ]
32+ [ InlineData ( "-x 32 33" , true , true , new int [ ] { 32 } , new int [ ] { 33 } ) ]
33+ [ InlineData ( "-z 32 33" , false , true , new int [ ] { } , new int [ ] { 33 } ) ]
34+ [ InlineData ( "-x 32 -x 33" , true , true , new int [ ] { 32 , 33 } , new int [ ] { } ) ]
3535 public void parameterless_properties (
3636 string cmdLine ,
3737 bool required ,
38- MappingResult result ,
38+ bool result ,
3939 int [ ] optValue ,
4040 int [ ] unkeyedValues )
4141 {
@@ -48,14 +48,14 @@ public void parameterless_properties(
4848 }
4949
5050 [ Theory ]
51- [ InlineData ( "-z 32 33" , true , MappingResult . MissingRequired , new int [ ] { } , new int [ ] { 33 } ) ]
52- [ InlineData ( "-x 32 33" , true , MappingResult . Success , new int [ ] { 32 } , new int [ ] { 33 } ) ]
53- [ InlineData ( "-z 32 33" , false , MappingResult . Success , new int [ ] { } , new int [ ] { 33 } ) ]
54- [ InlineData ( "-x 32 -x 33" , true , MappingResult . Success , new int [ ] { 32 , 33 } , new int [ ] { } ) ]
51+ [ InlineData ( "-z 32 33" , true , false , new int [ ] { } , new int [ ] { 33 } ) ]
52+ [ InlineData ( "-x 32 33" , true , true , new int [ ] { 32 } , new int [ ] { 33 } ) ]
53+ [ InlineData ( "-z 32 33" , false , true , new int [ ] { } , new int [ ] { 33 } ) ]
54+ [ InlineData ( "-x 32 -x 33" , true , true , new int [ ] { 32 , 33 } , new int [ ] { } ) ]
5555 public void parametered_properties (
5656 string cmdLine ,
5757 bool required ,
58- MappingResult result ,
58+ bool result ,
5959 int [ ] optValue ,
6060 int [ ] unkeyedValues )
6161 {
@@ -77,7 +77,7 @@ private void ProcessTest<T>(
7777 BindingTarget < T > target ,
7878 Option option ,
7979 Option unkeyed ,
80- MappingResult desiredParseResult ,
80+ bool desiredParseResult ,
8181 Func < TestProperties > results ,
8282 int [ ] optValue ,
8383 int [ ] unkeyedValues )
0 commit comments