@@ -66,12 +66,12 @@ public void CompareCommand_ShouldHave_BaselineOption()
6666
6767 // Assert
6868 var compareCommand = toolCommands . Subcommands . Single ( c => c . Name == "compare" ) ;
69- var baselineOption = compareCommand . Options . Single ( o => o . Name == "baseline" ) ;
69+ var baselineOption = compareCommand . Options . Single ( o => o . Name == "-- baseline" ) ;
7070
7171 baselineOption . ValueType . ShouldBe ( typeof ( string ) ) ;
72+ baselineOption . Aliases . Count . ShouldBe ( 1 ) ;
7273 baselineOption . Aliases . ShouldContain ( "-b" ) ;
73- baselineOption . Aliases . ShouldContain ( "--baseline" ) ;
74- baselineOption . IsRequired . ShouldBeTrue ( ) ;
74+ baselineOption . Required . ShouldBeTrue ( ) ;
7575 baselineOption . Description . ShouldBe ( "Path to the folder or file with Baseline report." ) ;
7676 }
7777
@@ -84,12 +84,12 @@ public void CompareCommand_ShouldHave_TargetOption()
8484
8585 // Assert
8686 var compareCommand = toolCommands . Subcommands . Single ( c => c . Name == "compare" ) ;
87- var targetOption = compareCommand . Options . Single ( o => o . Name == "target" ) ;
87+ var targetOption = compareCommand . Options . Single ( o => o . Name == "-- target" ) ;
8888
8989 targetOption . ValueType . ShouldBe ( typeof ( string ) ) ;
90+ targetOption . Aliases . Count . ShouldBe ( 1 ) ;
9091 targetOption . Aliases . ShouldContain ( "-t" ) ;
91- targetOption . Aliases . ShouldContain ( "--target" ) ;
92- targetOption . IsRequired . ShouldBeTrue ( ) ;
92+ targetOption . Required . ShouldBeTrue ( ) ;
9393 targetOption . Description . ShouldBe ( "Path to the folder or file with target reports." ) ;
9494 }
9595
@@ -102,11 +102,11 @@ public void CompareCommand_ShouldHave_ThresholdMeanOption()
102102
103103 // Assert
104104 var compareCommand = toolCommands . Subcommands . Single ( c => c . Name == "compare" ) ;
105- var meanThresholdOption = compareCommand . Options . Single ( o => o . Name == "threshold-mean" ) ;
105+ var meanThresholdOption = compareCommand . Options . Single ( o => o . Name == "-- threshold-mean" ) ;
106106
107107 meanThresholdOption . ValueType . ShouldBe ( typeof ( string ) ) ;
108+ meanThresholdOption . Aliases . Count . ShouldBe ( 1 ) ;
108109 meanThresholdOption . Aliases . ShouldContain ( "-tm" ) ;
109- meanThresholdOption . Aliases . ShouldContain ( "--threshold-mean" ) ;
110110 meanThresholdOption . Description . ShouldBe ( "Throw an error when the mean threshold is met. Examples: 5%, 10ms, 10μs, 100ns, 1s." ) ;
111111 }
112112
@@ -119,11 +119,11 @@ public void CompareCommand_ShouldHave_ThresholdAllocationOption()
119119
120120 // Assert
121121 var compareCommand = toolCommands . Subcommands . Single ( c => c . Name == "compare" ) ;
122- var allocationThresholdOption = compareCommand . Options . Single ( o => o . Name == "threshold-allocation" ) ;
122+ var allocationThresholdOption = compareCommand . Options . Single ( o => o . Name == "-- threshold-allocation" ) ;
123123
124124 allocationThresholdOption . ValueType . ShouldBe ( typeof ( string ) ) ;
125+ allocationThresholdOption . Aliases . Count . ShouldBe ( 1 ) ;
125126 allocationThresholdOption . Aliases . ShouldContain ( "-ta" ) ;
126- allocationThresholdOption . Aliases . ShouldContain ( "--threshold-allocation" ) ;
127127 allocationThresholdOption . Description . ShouldBe ( "Throw an error when the allocation threshold is met. Examples: 5%, 10b, 10kb, 100mb, 1gb." ) ;
128128 }
129129
@@ -136,11 +136,11 @@ public void CompareCommand_ShouldHave_FormatsOption()
136136
137137 // Assert
138138 var compareCommand = toolCommands . Subcommands . Single ( c => c . Name == "compare" ) ;
139- var formatsOption = compareCommand . Options . Single ( o => o . Name == "format" ) ;
139+ var formatsOption = compareCommand . Options . Single ( o => o . Name == "-- format" ) ;
140140
141141 formatsOption . ValueType . ShouldBe ( typeof ( string [ ] ) ) ;
142+ formatsOption . Aliases . Count . ShouldBe ( 1 ) ;
142143 formatsOption . Aliases . ShouldContain ( "-f" ) ;
143- formatsOption . Aliases . ShouldContain ( "--format" ) ;
144144 formatsOption . Description . ShouldBe ( "Output format for the report." ) ;
145145 }
146146
@@ -153,11 +153,11 @@ public void CompareCommand_ShouldHave_OutputOption()
153153
154154 // Assert
155155 var compareCommand = toolCommands . Subcommands . Single ( c => c . Name == "compare" ) ;
156- var outputOption = compareCommand . Options . Single ( o => o . Name == "output" ) ;
156+ var outputOption = compareCommand . Options . Single ( o => o . Name == "-- output" ) ;
157157
158158 outputOption . ValueType . ShouldBe ( typeof ( string ) ) ;
159+ outputOption . Aliases . Count . ShouldBe ( 1 ) ;
159160 outputOption . Aliases . ShouldContain ( "-o" ) ;
160- outputOption . Aliases . ShouldContain ( "--output" ) ;
161161 outputOption . Description . ShouldBe ( "Output directory to export the diff report. Default is current directory." ) ;
162162 }
163163}
0 commit comments