public void Overwrite_Should_Be_False_By_Default() { // Given, When var settings = new UniversalPackageUnpackSettings("./path/to/file.upack", "./path/to/destination"); // Then Assert.False(settings.Overwrite); }
public static void Unpack(this ICakeContext context, UniversalPackageUnpackSettings settings) { if (context == null) { throw new ArgumentNullException(nameof(context)); } var resolver = new UPackToolResolver(context.FileSystem, context.Environment, context.Tools); var runner = new UniversalPackageUnpacker(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, resolver); runner.Execute(settings); }