17 lines
680 B
C#
17 lines
680 B
C#
namespace AgentWikiUi.Tests;
|
|||
|
|
|
||
|
|
/// <summary>Percorso del <c>claude</c> finto compilato (tests/FakeClaude), nella stessa configurazione dei test.</summary>
|
||
|
|
static class FakeClaudePath
|
||
|
|
{
|
||
|
|
public static string Exe
|
||
|
|
{
|
||
|
|
get
|
||
|
|
{
|
||
|
|
// …/tests/agent-wiki-ui.Tests/bin/<config>/net10.0/
|
||
|
|
var tfm = new DirectoryInfo(AppContext.BaseDirectory.TrimEnd(Path.DirectorySeparatorChar));
|
||
|
|
var config = tfm.Parent!;
|
||
|
|
var testsRoot = config.Parent!.Parent!.Parent!;
|
||
|
|
return Path.Combine(testsRoot.FullName, "FakeClaude", "bin", config.Name, tfm.Name, OperatingSystem.IsWindows() ? "claude.exe" : "claude");
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|