@@ -327,6 +327,22 @@ public void OtherArgumentsCanBeParsedBeforeNofetch()
327
327
arguments . NoFetch . ShouldBe ( true ) ;
328
328
}
329
329
330
+ [ Test ]
331
+ public void OtherArgumentsCanBeParsedBeforeNonormalize ( )
332
+ {
333
+ var arguments = argumentParser . ParseArguments ( "targetpath -nonormalize" ) ;
334
+ arguments . TargetPath . ShouldBe ( "targetpath" ) ;
335
+ arguments . NoNormalize . ShouldBe ( true ) ;
336
+ }
337
+
338
+ [ Test ]
339
+ public void OtherArgumentsCanBeParsedBeforeNocache ( )
340
+ {
341
+ var arguments = argumentParser . ParseArguments ( "targetpath -nocache" ) ;
342
+ arguments . TargetPath . ShouldBe ( "targetpath" ) ;
343
+ arguments . NoCache . ShouldBe ( true ) ;
344
+ }
345
+
330
346
[ Test ]
331
347
public void OtherArgumentsCanBeParsedAfterNofetch ( )
332
348
{
@@ -335,6 +351,36 @@ public void OtherArgumentsCanBeParsedAfterNofetch()
335
351
arguments . Proj . ShouldBe ( "foo.sln" ) ;
336
352
}
337
353
354
+ [ Test ]
355
+ public void OtherArgumentsCanBeParsedAfterNonormalize ( )
356
+ {
357
+ var arguments = argumentParser . ParseArguments ( "-nonormalize -proj foo.sln" ) ;
358
+ arguments . NoNormalize . ShouldBe ( true ) ;
359
+ arguments . Proj . ShouldBe ( "foo.sln" ) ;
360
+ }
361
+
362
+ [ Test ]
363
+ public void OtherArgumentsCanBeParsedAfterNocache ( )
364
+ {
365
+ var arguments = argumentParser . ParseArguments ( "-nocache -proj foo.sln" ) ;
366
+ arguments . NoCache . ShouldBe ( true ) ;
367
+ arguments . Proj . ShouldBe ( "foo.sln" ) ;
368
+ }
369
+
370
+ [ TestCase ( "-nofetch -nonormalize -nocache" ) ]
371
+ [ TestCase ( "-nofetch -nocache -nonormalize" ) ]
372
+ [ TestCase ( "-nocache -nofetch -nonormalize" ) ]
373
+ [ TestCase ( "-nocache -nonormalize -nofetch" ) ]
374
+ [ TestCase ( "-nonormalize -nocache -nofetch" ) ]
375
+ [ TestCase ( "-nonormalize -nofetch -nocache" ) ]
376
+ public void SeveralSwitchesCanBeParsed ( string commandLineArgs )
377
+ {
378
+ var arguments = argumentParser . ParseArguments ( commandLineArgs ) ;
379
+ arguments . NoCache . ShouldBe ( true ) ;
380
+ arguments . NoNormalize . ShouldBe ( true ) ;
381
+ arguments . NoFetch . ShouldBe ( true ) ;
382
+ }
383
+
338
384
[ Test ]
339
385
public void LogPathCanContainForwardSlash ( )
340
386
{
0 commit comments