1717/* ------------------------------------------------------------------------- */
1818namespace Cube . FileSystem . SevenZip . Ice . Tests ;
1919
20+ using System ;
2021using System . Collections . Generic ;
2122using System . Linq ;
2223using System . Security ;
@@ -46,9 +47,14 @@ class ExtractTest : VmFixture
4647 /// Tests the extraction.
4748 /// </summary>
4849 ///
50+ /// <param name="check">Path to check if the process completed.</param>
51+ /// <param name="files">Source files to be extracted.</param>
52+ /// <param name="args">Program options.</param>
53+ /// <param name="settings">User settings for extracting.</param>
54+ ///
4955 /* --------------------------------------------------------------------- */
5056 [ TestCaseSource ( nameof ( TestCases ) ) ]
51- public void Extract ( string dest , IEnumerable < string > files , IEnumerable < string > args , ExtractionSettingValue settings )
57+ public void Extract ( string check , IEnumerable < string > files , IEnumerable < string > args , ExtractionSettingValue settings )
5258 {
5359 settings . SaveDirectory = Get ( "Preset" ) ;
5460
@@ -73,7 +79,8 @@ public void Extract(string dest, IEnumerable<string> files, IEnumerable<string>
7379 Logger . Debug ( $ "{ vm . Elapsed } , { vm . Remaining } , { vm . Title } ") ;
7480 }
7581
76- Assert . That ( Io . Exists ( Get ( dest ) ) , Is . True , dest ) ;
82+ var dest = new Entity ( Get ( check ) ) ;
83+ Assert . That ( dest . Exists , Is . True , check ) ;
7784 }
7885
7986 #endregion
0 commit comments