File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 11using System ;
2+ using System . Diagnostics ;
23using System . IO ;
34using System . Linq ;
45using System . Text ;
6+ using LibGit2Sharp . Core ;
57using LibGit2Sharp . Tests . TestHelpers ;
68using Xunit ;
79using Xunit . Extensions ;
@@ -459,7 +461,16 @@ FileStatus expectedCamelCasedFileStatus
459461 const string upercasedFilename = "Plop" ;
460462
461463 string camelCasedPath = Path . Combine ( repo . Info . WorkingDirectory , upercasedFilename ) ;
462- File . Move ( lowerCasedPath , camelCasedPath ) ;
464+
465+ if ( Platform . OperatingSystem == OperatingSystemType . MacOSX )
466+ {
467+ var process = Process . Start ( "mv" , $ "{ lowerCasedPath } { camelCasedPath } ") ;
468+ process . WaitForExit ( ) ;
469+ }
470+ else
471+ {
472+ File . Move ( lowerCasedPath , camelCasedPath ) ;
473+ }
463474
464475 Assert . Equal ( expectedlowerCasedFileStatus , repo . RetrieveStatus ( lowercasedFilename ) ) ;
465476 Assert . Equal ( expectedCamelCasedFileStatus , repo . RetrieveStatus ( upercasedFilename ) ) ;
You can’t perform that action at this time.
0 commit comments