From 06835732a8e6e9d18d548fbb4487bcaf5c8e1725 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Fri, 13 Jul 2018 15:08:27 -0700 Subject: Fix MSBuild handling of cultures plus add unit tests Fixes #5847 --- .../WixToolsetTest.BuildTasks/FakeBuildEngine.cs | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/test/WixToolsetTest.BuildTasks/FakeBuildEngine.cs (limited to 'src/test/WixToolsetTest.BuildTasks/FakeBuildEngine.cs') 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 @@ +// 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. + +namespace WixToolsetTest.BuildTasks +{ + using System.Collections; + using System.Diagnostics; + using Microsoft.Build.Framework; + + internal class FakeBuildEngine : IBuildEngine + { + public int ColumnNumberOfTaskNode => 0; + + public bool ContinueOnError => false; + + public int LineNumberOfTaskNode => 0; + + public string ProjectFileOfTaskNode => "fake_wix.targets"; + + public bool BuildProjectFile(string projectFileName, string[] targetNames, IDictionary globalProperties, IDictionary targetOutputs) => throw new System.NotImplementedException(); + + public void LogCustomEvent(CustomBuildEventArgs e) => Debug.Write(e.Message); + + public void LogErrorEvent(BuildErrorEventArgs e) => Debug.Write(e.Message); + + public void LogMessageEvent(BuildMessageEventArgs e) => Debug.Write(e.Message); + + public void LogWarningEvent(BuildWarningEventArgs e) => Debug.Write(e.Message); + } +} -- cgit v1.2.3-55-g6feb