@@ -24,6 +24,16 @@ public static void UnParsing_instance_returns_command_line(Simple_Options option
24
24
. Should ( ) . BeEquivalentTo ( result ) ;
25
25
}
26
26
27
+ [ Theory ]
28
+ [ MemberData ( nameof ( UnParseData ) ) ]
29
+ public static void UnParsing_instance_with_splitArgs_returns_same_option_class ( Simple_Options options , string result )
30
+ {
31
+ new Parser ( )
32
+ . FormatCommandLineArgs ( options )
33
+ . Should ( ) . BeEquivalentTo ( result . SplitArgs ( ) ) ;
34
+
35
+ }
36
+
27
37
[ Theory ]
28
38
[ MemberData ( nameof ( UnParseFileDirectoryData ) ) ]
29
39
public static void UnParsing_instance_returns_command_line_for_file_directory_paths ( Options_With_FileDirectoryInfo options , string result )
@@ -33,6 +43,14 @@ public static void UnParsing_instance_returns_command_line_for_file_directory_pa
33
43
. Should ( ) . BeEquivalentTo ( result ) ;
34
44
}
35
45
46
+ [ Theory ]
47
+ [ MemberData ( nameof ( UnParseFileDirectoryData ) ) ]
48
+ public static void UnParsing_instance_by_splitArgs_returns_command_line_for_file_directory_paths ( Options_With_FileDirectoryInfo options , string result )
49
+ {
50
+ new Parser ( )
51
+ . FormatCommandLineArgs ( options )
52
+ . Should ( ) . BeEquivalentTo ( result . SplitArgs ( ) ) ;
53
+ }
36
54
[ Theory ]
37
55
[ MemberData ( nameof ( UnParseDataVerbs ) ) ]
38
56
public static void UnParsing_instance_returns_command_line_for_verbs ( Add_Verb verb , string result )
@@ -42,6 +60,15 @@ public static void UnParsing_instance_returns_command_line_for_verbs(Add_Verb ve
42
60
. Should ( ) . BeEquivalentTo ( result ) ;
43
61
}
44
62
63
+ [ Theory ]
64
+ [ MemberData ( nameof ( UnParseDataVerbs ) ) ]
65
+ public static void UnParsing_instance_to_splitArgs_returns_command_line_for_verbs ( Add_Verb verb , string result )
66
+ {
67
+ new Parser ( )
68
+ . FormatCommandLineArgs ( verb )
69
+ . Should ( ) . BeEquivalentTo ( result . SplitArgs ( ) ) ;
70
+ }
71
+
45
72
[ Theory ]
46
73
[ MemberData ( nameof ( UnParseDataImmutable ) ) ]
47
74
public static void UnParsing_immutable_instance_returns_command_line ( Immutable_Simple_Options options , string result )
0 commit comments