aboutsummaryrefslogtreecommitdiff
path: root/src/WixTestTools/BundleVerifier.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixTestTools/BundleVerifier.cs')
-rw-r--r--src/WixTestTools/BundleVerifier.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/WixTestTools/BundleVerifier.cs b/src/WixTestTools/BundleVerifier.cs
index 433b6a0a..293da560 100644
--- a/src/WixTestTools/BundleVerifier.cs
+++ b/src/WixTestTools/BundleVerifier.cs
@@ -56,6 +56,20 @@ namespace WixTestTools
56 return Path.Combine(cachePath, Path.GetFileName(this.Bundle)); 56 return Path.Combine(cachePath, Path.GetFileName(this.Bundle));
57 } 57 }
58 58
59 public string ManuallyCache()
60 {
61 var expectedCachePath = this.GetExpectedCachedBundlePath();
62 Directory.CreateDirectory(Path.GetDirectoryName(expectedCachePath));
63 File.Copy(this.Bundle, expectedCachePath);
64 return expectedCachePath;
65 }
66
67 public void ManuallyUncache()
68 {
69 var expectedCachePath = this.GetExpectedCachedBundlePath();
70 File.Delete(expectedCachePath);
71 }
72
59 public bool TryGetRegistration(out BundleRegistration registration) 73 public bool TryGetRegistration(out BundleRegistration registration)
60 { 74 {
61 var bundleSymbol = this.GetBundleSymbol(); 75 var bundleSymbol = this.GetBundleSymbol();