@@ -19,11 +19,14 @@ Setup(
1919 context=> {
2020 file = Context . FileSystem . GetFile ( "test.cake" ) ;
2121 directory = Context . FileSystem . GetDirectory ( "tools" ) ;
22+ var fileSystemType = Context . FileSystem . GetType ( ) ;
23+
2224 Information (
23- "IFileSystem: {0}\r \n \t IFile: {1}\r \n \t IDirectory: {2}" ,
24- Context . FileSystem . GetType ( ) ,
25+ "IFileSystem: {0}\r \n \t IFile: {1}\r \n \t IDirectory: {2}\r \n \t Assembly: {3} " ,
26+ fileSystemType ,
2527 file . GetType ( ) ,
26- directory . GetType ( )
28+ directory . GetType ( ) ,
29+ fileSystemType . Assembly
2730 ) ;
2831
2932 testPath = Directory ( "testpath" ) ;
@@ -36,7 +39,11 @@ Setup(
3639 } ) ;
3740
3841Teardown ( context=> {
39- DeleteDirectory ( testPath , recursive : true ) ;
42+ DeleteDirectory ( testPath ,
43+ new DeleteDirectorySettings {
44+ Recursive = true ,
45+ Force = true
46+ } ) ;
4047 } ) ;
4148
4249Task ( "Create-Directory-Structure" )
@@ -113,10 +120,10 @@ Task("Move-Folder")
113120 . Does ( ( ) => {
114121 var source = Context . FileSystem . GetDirectory ( moveSourcePath ) ;
115122 var target = moveDestPath . Combine ( "target" ) ;
116-
123+
117124 Information ( "Moving {0} to {1}" , source , target ) ;
118125 source . Move ( target ) ;
119-
126+
120127 if ( ! FileExists ( target . CombineWithFilePath ( "marker.txt" ) ) )
121128 {
122129 throw new Exception ( "Folder not moved correctly" ) ;
0 commit comments