aboutsummaryrefslogtreecommitdiff
path: root/src/internal/WixInternal.MSTestSupport/FakeBuildEngine.cs
diff options
context:
space:
mode:
authorBob Arnson <bob@firegiant.com>2025-02-14 22:29:39 -0500
committerBob Arnson <bob@firegiant.com>2025-02-14 22:29:39 -0500
commita181c02fd5ef6d601a98778a5c9e20b5c52779ca (patch)
tree7f6989e81ce05264f4c93e481e257a8cebdc6ded /src/internal/WixInternal.MSTestSupport/FakeBuildEngine.cs
parent1be4e0930eb296f44b8cecd10fc9632a867149ce (diff)
downloadwix-a181c02fd5ef6d601a98778a5c9e20b5c52779ca.tar.gz
wix-a181c02fd5ef6d601a98778a5c9e20b5c52779ca.tar.bz2
wix-a181c02fd5ef6d601a98778a5c9e20b5c52779ca.zip
Convert ext\ to MSTest and traversal projects.
- Move ext\ unit tests to MSTest. - MSBuildify ext projects with MSTest execution. - Fork test support projects for MSTest: - WixInternal.TestSupport - WixInternal.Core.TestPackage
Diffstat (limited to 'src/internal/WixInternal.MSTestSupport/FakeBuildEngine.cs')
-rw-r--r--src/internal/WixInternal.MSTestSupport/FakeBuildEngine.cs33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/internal/WixInternal.MSTestSupport/FakeBuildEngine.cs b/src/internal/WixInternal.MSTestSupport/FakeBuildEngine.cs
new file mode 100644
index 00000000..951d1bc8
--- /dev/null
+++ b/src/internal/WixInternal.MSTestSupport/FakeBuildEngine.cs
@@ -0,0 +1,33 @@
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
3namespace WixInternal.MSTestSupport
4{
5 using System.Collections;
6 using System.Text;
7 using Microsoft.Build.Framework;
8
9 public class FakeBuildEngine : IBuildEngine
10 {
11 private readonly StringBuilder output = new StringBuilder();
12
13 public int ColumnNumberOfTaskNode => 0;
14
15 public bool ContinueOnError => false;
16
17 public int LineNumberOfTaskNode => 0;
18
19 public string ProjectFileOfTaskNode => "fake_wix.targets";
20
21 public string Output => this.output.ToString();
22
23 public bool BuildProjectFile(string projectFileName, string[] targetNames, IDictionary globalProperties, IDictionary targetOutputs) => throw new System.NotImplementedException();
24
25 public void LogCustomEvent(CustomBuildEventArgs e) => this.output.AppendLine(e.Message);
26
27 public void LogErrorEvent(BuildErrorEventArgs e) => this.output.AppendLine(e.Message);
28
29 public void LogMessageEvent(BuildMessageEventArgs e) => this.output.AppendLine(e.Message);
30
31 public void LogWarningEvent(BuildWarningEventArgs e) => this.output.AppendLine(e.Message);
32 }
33}