fix the method
MODIFY
WalletWasabi.Tests/UnitTests/BitcoinCore/P2pBasedTests.cs
WalletWasabi.Tests/UnitTests/BitcoinCore/P2pBasedTests.cs
@@ -31,7 +31,7 @@ namespace WalletWasabi.Tests.UnitTests.BitcoinCore
var network = coreNode.Network;
var rpc = coreNode.RpcClient;
var bitcoinStore = new BitcoinStore();
- var dir = Path.Combine(Global.Instance.DataDir, EnvironmentHelpers.GetCallerFilePath(), EnvironmentHelpers.GetMethodName());
+ var dir = Path.Combine(Global.Instance.DataDir, EnvironmentHelpers.GetCallerFileName(), EnvironmentHelpers.GetMethodName());
await bitcoinStore.InitializeAsync(dir, network);
await rpc.GenerateAsync(101);
@@ -84,7 +84,7 @@ namespace WalletWasabi.Tests.UnitTests.BitcoinCore
await rpc.GenerateAsync(101);
var network = rpc.Network;
- var dir = Path.Combine(Global.Instance.DataDir, EnvironmentHelpers.GetCallerFilePath(), EnvironmentHelpers.GetMethodName());
+ var dir = Path.Combine(Global.Instance.DataDir, EnvironmentHelpers.GetCallerFileName(), EnvironmentHelpers.GetMethodName());
var addr = new Key().PubKey.GetSegwitAddress(network);
var notifier = coreNode.MempoolService;

MODIFY
WalletWasabi.Tests/UnitTests/IoTests.cs
WalletWasabi.Tests/UnitTests/IoTests.cs
@@ -16,8 +16,8 @@ namespace WalletWasabi.Tests.UnitTests
[Fact]
public async Task IoManagerTestsAsync()
{
- var file1 = Path.Combine(Global.Instance.DataDir, EnvironmentHelpers.GetCallerFilePath(), EnvironmentHelpers.GetMethodName(), $"file1.dat");
- var file2 = Path.Combine(Global.Instance.DataDir, EnvironmentHelpers.GetCallerFilePath(), EnvironmentHelpers.GetMethodName(), $"file2.dat");
+ var file1 = Path.Combine(Global.Instance.DataDir, EnvironmentHelpers.GetCallerFileName(), EnvironmentHelpers.GetMethodName(), $"file1.dat");
+ var file2 = Path.Combine(Global.Instance.DataDir, EnvironmentHelpers.GetCallerFileName(), EnvironmentHelpers.GetMethodName(), $"file2.dat");
Random random = new Random();
List<string> lines = new List<string>();
@@ -192,7 +192,7 @@ namespace WalletWasabi.Tests.UnitTests
[Fact]
public async Task IoTestsAsync()
{
- var file = Path.Combine(Global.Instance.DataDir, EnvironmentHelpers.GetCallerFilePath(), EnvironmentHelpers.GetMethodName(), $"file.dat");
+ var file = Path.Combine(Global.Instance.DataDir, EnvironmentHelpers.GetCallerFileName(), EnvironmentHelpers.GetMethodName(), $"file.dat");
DigestableSafeMutexIoManager ioman = new DigestableSafeMutexIoManager(file);
ioman.DeleteMe();

MODIFY
WalletWasabi.Tests/UnitTests/KeyManagementTests.cs
WalletWasabi.Tests/UnitTests/KeyManagementTests.cs
@@ -90,7 +90,7 @@ namespace WalletWasabi.Tests.UnitTests
{
string password = "password";
- var filePath = Path.Combine(Global.Instance.DataDir, EnvironmentHelpers.GetCallerFilePath(), EnvironmentHelpers.GetMethodName(), "Wallet.json");
+ var filePath = Path.Combine(Global.Instance.DataDir, EnvironmentHelpers.GetCallerFileName(), EnvironmentHelpers.GetMethodName(), "Wallet.json");
DeleteFileAndDirectoryIfExists(filePath);
Logger.TurnOff();

MODIFY
WalletWasabi/Helpers/EnvironmentHelpers.cs
WalletWasabi/Helpers/EnvironmentHelpers.cs
@@ -222,11 +222,6 @@ namespace WalletWasabi.Helpers
return callerName;
}
- public static string GetCallerFilePath([CallerFilePath] string callerFilePath = "")
- {
- return callerFilePath;
- }
-
public static string GetCallerFileName([CallerFilePath] string callerFilePath = "")
{
return ExtractFileName(callerFilePath);

fix the method