diff options
Diffstat (limited to 'src/test/WixToolsetTest.BuildTasks/FakeBuildEngine.cs')
-rw-r--r-- | src/test/WixToolsetTest.BuildTasks/FakeBuildEngine.cs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.BuildTasks/FakeBuildEngine.cs b/src/test/WixToolsetTest.BuildTasks/FakeBuildEngine.cs new file mode 100644 index 00000000..0559057f --- /dev/null +++ b/src/test/WixToolsetTest.BuildTasks/FakeBuildEngine.cs | |||
@@ -0,0 +1,29 @@ | |||
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 | |||
3 | namespace WixToolsetTest.BuildTasks | ||
4 | { | ||
5 | using System.Collections; | ||
6 | using System.Diagnostics; | ||
7 | using Microsoft.Build.Framework; | ||
8 | |||
9 | internal class FakeBuildEngine : IBuildEngine | ||
10 | { | ||
11 | public int ColumnNumberOfTaskNode => 0; | ||
12 | |||
13 | public bool ContinueOnError => false; | ||
14 | |||
15 | public int LineNumberOfTaskNode => 0; | ||
16 | |||
17 | public string ProjectFileOfTaskNode => "fake_wix.targets"; | ||
18 | |||
19 | public bool BuildProjectFile(string projectFileName, string[] targetNames, IDictionary globalProperties, IDictionary targetOutputs) => throw new System.NotImplementedException(); | ||
20 | |||
21 | public void LogCustomEvent(CustomBuildEventArgs e) => Debug.Write(e.Message); | ||
22 | |||
23 | public void LogErrorEvent(BuildErrorEventArgs e) => Debug.Write(e.Message); | ||
24 | |||
25 | public void LogMessageEvent(BuildMessageEventArgs e) => Debug.Write(e.Message); | ||
26 | |||
27 | public void LogWarningEvent(BuildWarningEventArgs e) => Debug.Write(e.Message); | ||
28 | } | ||
29 | } | ||