From c98e207fdaa1fd5373301abc2d50274b464e5378 Mon Sep 17 00:00:00 2001 From: Bob Arnson Date: Thu, 22 Oct 2020 19:35:52 -0400 Subject: Add _SummaryInformation support to Query. --- src/WixBuildTools.TestSupport/DisposableFileSystem.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/WixBuildTools.TestSupport/DisposableFileSystem.cs') diff --git a/src/WixBuildTools.TestSupport/DisposableFileSystem.cs b/src/WixBuildTools.TestSupport/DisposableFileSystem.cs index 28440f90..f096db72 100644 --- a/src/WixBuildTools.TestSupport/DisposableFileSystem.cs +++ b/src/WixBuildTools.TestSupport/DisposableFileSystem.cs @@ -1,4 +1,4 @@ -// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. +// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. namespace WixBuildTools.TestSupport { @@ -12,6 +12,13 @@ namespace WixBuildTools.TestSupport private List CleanupPaths { get; } = new List(); + public bool Keep { get; } + + public DisposableFileSystem(bool keep = false) + { + this.Keep = keep; + } + protected string GetFile(bool create = false) { var path = Path.GetTempFileName(); @@ -56,7 +63,7 @@ namespace WixBuildTools.TestSupport return; } - if (disposing) + if (disposing && !this.Keep) { foreach (var path in this.CleanupPaths) { -- cgit v1.2.3-55-g6feb