diff options
| author | Rob Mensching <rob@firegiant.com> | 2017-12-28 09:20:11 -0800 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2017-12-28 09:20:11 -0800 |
| commit | 2c711ea621c03e415dc9ad9e9f103e09372b8c50 (patch) | |
| tree | 415b00719d8f016e6edbd867947510d753224040 /src/WixBuildTools.TestSupport/TestData.cs | |
| parent | 9a829ccb7b8cbc3432356f5b8deba081d64e3cb5 (diff) | |
| download | wix-2c711ea621c03e415dc9ad9e9f103e09372b8c50.tar.gz wix-2c711ea621c03e415dc9ad9e9f103e09372b8c50.tar.bz2 wix-2c711ea621c03e415dc9ad9e9f103e09372b8c50.zip | |
Add WixBuildTools.TestSupport with common testing functionality
Diffstat (limited to 'src/WixBuildTools.TestSupport/TestData.cs')
| -rw-r--r-- | src/WixBuildTools.TestSupport/TestData.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/WixBuildTools.TestSupport/TestData.cs b/src/WixBuildTools.TestSupport/TestData.cs new file mode 100644 index 00000000..fde9db54 --- /dev/null +++ b/src/WixBuildTools.TestSupport/TestData.cs | |||
| @@ -0,0 +1,16 @@ | |||
| 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 WixBuildTools.TestSupport | ||
| 4 | { | ||
| 5 | using System; | ||
| 6 | using System.IO; | ||
| 7 | |||
| 8 | public class TestData | ||
| 9 | { | ||
| 10 | public static string Get(params string[] paths) | ||
| 11 | { | ||
| 12 | var localPath = Path.GetDirectoryName(new Uri(System.Reflection.Assembly.GetCallingAssembly().CodeBase).LocalPath); | ||
| 13 | return Path.Combine(localPath, Path.Combine(paths)); | ||
| 14 | } | ||
| 15 | } | ||
| 16 | } | ||
