aboutsummaryrefslogtreecommitdiff
path: root/src/test/burn/WixTestTools/LogVerifier.cs
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2024-01-11 18:26:20 -0800
committerRob Mensching <rob@firegiant.com>2024-03-06 18:03:38 -0800
commit0d3d54992104288e9ee0c834d0b96e8502fd2d42 (patch)
tree9efa49c4983cd2ba1becab64bd1f2faccac88acf /src/test/burn/WixTestTools/LogVerifier.cs
parent2824298d9dd817a47527c920363556b54ead5d5d (diff)
downloadwix-0d3d54992104288e9ee0c834d0b96e8502fd2d42.tar.gz
wix-0d3d54992104288e9ee0c834d0b96e8502fd2d42.tar.bz2
wix-0d3d54992104288e9ee0c834d0b96e8502fd2d42.zip
Move the BootstrapperApplication out of proc
Diffstat (limited to 'src/test/burn/WixTestTools/LogVerifier.cs')
-rw-r--r--src/test/burn/WixTestTools/LogVerifier.cs17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/test/burn/WixTestTools/LogVerifier.cs b/src/test/burn/WixTestTools/LogVerifier.cs
index d402fad5..0e974933 100644
--- a/src/test/burn/WixTestTools/LogVerifier.cs
+++ b/src/test/burn/WixTestTools/LogVerifier.cs
@@ -104,13 +104,14 @@ namespace WixTestTools
104 /// <summary> 104 /// <summary>
105 /// Scans a log file for matches to the regex. 105 /// Scans a log file for matches to the regex.
106 /// </summary> 106 /// </summary>
107 /// <param name="regex">A regular expression</param> 107 /// <param name="match">A string to find.</param>
108 /// <returns>The number of matches</returns> 108 /// <returns>If the string is found.</returns>
109 public bool EntireFileAtOncestr(string regex) 109 public bool EntireFileAtOncestr(string match)
110 { 110 {
111 string logFileText = this.ReadLogFile(); 111 string logFileText = this.ReadLogFile();
112 return logFileText.Contains(regex); 112 return logFileText.Contains(match);
113 } 113 }
114
114 /// <summary> 115 /// <summary>
115 /// Scans a log file for matches to the regex string. 116 /// Scans a log file for matches to the regex string.
116 /// Only the Multiline RegexOption is used and matches are case sensitive. 117 /// Only the Multiline RegexOption is used and matches are case sensitive.
@@ -143,12 +144,12 @@ namespace WixTestTools
143 /// <summary> 144 /// <summary>
144 /// Search through the log and Assert.Fail() if a specified string is not found. 145 /// Search through the log and Assert.Fail() if a specified string is not found.
145 /// </summary> 146 /// </summary>
146 /// <param name="regex">Search expression</param> 147 /// <param name="match">Search expression</param>
147 /// <param name="ignoreCase">Perform case insensitive match</param> 148 /// <param name="ignoreCase">Perform case insensitive match</param>
148 public void AssertTextInLog(string regex, bool ignoreCase) 149 public void AssertTextInLog(string match, bool ignoreCase)
149 { 150 {
150 Assert.True(this.EntireFileAtOncestr(regex), 151 Assert.True(this.EntireFileAtOncestr(match),
151 String.Format("The log does not contain a match to the regular expression \"{0}\" ", regex)); 152 String.Format("The log does not contain a match for the {1}string \"{0}\" ", match, ignoreCase ? "case insensitive " : ""));
152 } 153 }
153 154
154 /// <summary> 155 /// <summary>