From cb3614d54c9f59e164358afe1e8ee6282449264d Mon Sep 17 00:00:00 2001 From: Sean Kaim Date: Mon, 11 Jul 2016 17:27:01 -0400 Subject: [PATCH] Fix LargeAddressAware test --- mRemoteNGTests/BinaryFileTests.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mRemoteNGTests/BinaryFileTests.cs b/mRemoteNGTests/BinaryFileTests.cs index 80aacbc0..5b2629e3 100644 --- a/mRemoteNGTests/BinaryFileTests.cs +++ b/mRemoteNGTests/BinaryFileTests.cs @@ -13,7 +13,7 @@ namespace mRemoteNGTests Assert.That(IsLargeAware(exePath), Is.True); } - static string GetTargetPath() + static string GetTargetPath([System.Runtime.CompilerServices.CallerFilePath] string sourceFilePath = "") { string debugOrRelease = ""; string normalOrPortable = ""; @@ -27,8 +27,9 @@ namespace mRemoteNGTests #else normalOrPortable = ""; #endif - string path = string.Format(".\\mRemoteV1\\bin\\{0}{1}\\mRemoteNG.exe", debugOrRelease, normalOrPortable); - return path; + var path = Path.GetDirectoryName(sourceFilePath); + string FilePath = $"{path}\\..\\mRemoteV1\\bin\\{debugOrRelease}{normalOrPortable}\\mRemoteNG.exe"; + return FilePath; } static bool IsLargeAware(string file)