diff options
author | Bob Arnson <bob@firegiant.com> | 2020-10-22 19:37:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-22 19:37:44 -0400 |
commit | f5758d825bb113d2dda2afdb2019276e14dfbe03 (patch) | |
tree | c2cc9f58d5737f0d74895834e865b8f2c29095ef /src/WixBuildTools.TestSupport/DisposableFileSystem.cs | |
parent | c0bdce5ec33d97eb4820dd1c855db89a69d4c9fa (diff) | |
parent | c98e207fdaa1fd5373301abc2d50274b464e5378 (diff) | |
download | wix-f5758d825bb113d2dda2afdb2019276e14dfbe03.tar.gz wix-f5758d825bb113d2dda2afdb2019276e14dfbe03.tar.bz2 wix-f5758d825bb113d2dda2afdb2019276e14dfbe03.zip |
Merge pull request #14 from wixtoolset/bob/SummaryInformation
Add _SummaryInformation support to Query.
Diffstat (limited to 'src/WixBuildTools.TestSupport/DisposableFileSystem.cs')
-rw-r--r-- | src/WixBuildTools.TestSupport/DisposableFileSystem.cs | 11 |
1 files changed, 9 insertions, 2 deletions
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 @@ | |||
1 | // 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. | 1 | // 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. |
2 | 2 | ||
3 | namespace WixBuildTools.TestSupport | 3 | namespace WixBuildTools.TestSupport |
4 | { | 4 | { |
@@ -12,6 +12,13 @@ namespace WixBuildTools.TestSupport | |||
12 | 12 | ||
13 | private List<string> CleanupPaths { get; } = new List<string>(); | 13 | private List<string> CleanupPaths { get; } = new List<string>(); |
14 | 14 | ||
15 | public bool Keep { get; } | ||
16 | |||
17 | public DisposableFileSystem(bool keep = false) | ||
18 | { | ||
19 | this.Keep = keep; | ||
20 | } | ||
21 | |||
15 | protected string GetFile(bool create = false) | 22 | protected string GetFile(bool create = false) |
16 | { | 23 | { |
17 | var path = Path.GetTempFileName(); | 24 | var path = Path.GetTempFileName(); |
@@ -56,7 +63,7 @@ namespace WixBuildTools.TestSupport | |||
56 | return; | 63 | return; |
57 | } | 64 | } |
58 | 65 | ||
59 | if (disposing) | 66 | if (disposing && !this.Keep) |
60 | { | 67 | { |
61 | foreach (var path in this.CleanupPaths) | 68 | foreach (var path in this.CleanupPaths) |
62 | { | 69 | { |