diff options
Diffstat (limited to 'src/WixBuildTools.TestSupport/Query.cs')
-rw-r--r-- | src/WixBuildTools.TestSupport/Query.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/WixBuildTools.TestSupport/Query.cs b/src/WixBuildTools.TestSupport/Query.cs index b4e6b7f9..101a8890 100644 --- a/src/WixBuildTools.TestSupport/Query.cs +++ b/src/WixBuildTools.TestSupport/Query.cs | |||
@@ -44,6 +44,26 @@ namespace WixBuildTools.TestSupport | |||
44 | { | 44 | { |
45 | foreach (var table in tables) | 45 | foreach (var table in tables) |
46 | { | 46 | { |
47 | if (table == "_SummaryInformation") | ||
48 | { | ||
49 | var entries = new List<string>(); | ||
50 | results.Add(table, entries); | ||
51 | |||
52 | entries.Add($"Title\t{db.SummaryInfo.Title}"); | ||
53 | entries.Add($"Subject\t{db.SummaryInfo.Subject}"); | ||
54 | entries.Add($"Author\t{db.SummaryInfo.Author}"); | ||
55 | entries.Add($"Keywords\t{db.SummaryInfo.Keywords}"); | ||
56 | entries.Add($"Comments\t{db.SummaryInfo.Comments}"); | ||
57 | entries.Add($"Template\t{db.SummaryInfo.Template}"); | ||
58 | entries.Add($"CodePage\t{db.SummaryInfo.CodePage}"); | ||
59 | entries.Add($"PageCount\t{db.SummaryInfo.PageCount}"); | ||
60 | entries.Add($"WordCount\t{db.SummaryInfo.WordCount}"); | ||
61 | entries.Add($"CharacterCount\t{db.SummaryInfo.CharacterCount}"); | ||
62 | entries.Add($"Security\t{db.SummaryInfo.Security}"); | ||
63 | |||
64 | continue; | ||
65 | } | ||
66 | |||
47 | if (!db.IsTablePersistent(table)) | 67 | if (!db.IsTablePersistent(table)) |
48 | { | 68 | { |
49 | results.Add(table, null); | 69 | results.Add(table, null); |
@@ -52,6 +72,7 @@ namespace WixBuildTools.TestSupport | |||
52 | 72 | ||
53 | var rows = new List<string>(); | 73 | var rows = new List<string>(); |
54 | results.Add(table, rows); | 74 | results.Add(table, rows); |
75 | |||
55 | using (var view = db.OpenView("SELECT * FROM `{0}`", table)) | 76 | using (var view = db.OpenView("SELECT * FROM `{0}`", table)) |
56 | { | 77 | { |
57 | view.Execute(); | 78 | view.Execute(); |