using NeonSprawl.Server.Game.Mastery;

namespace NeonSprawl.Server.Tests.Game.Mastery;

internal static class MasteryCatalogTestPaths
{
    internal static string DiscoverRepoMasteryDirectory() =>
        MasteryCatalogPathResolution.TryDiscoverMasteryDirectory(AppContext.BaseDirectory)
        ?? throw new InvalidOperationException(
            "Could not discover repo content/mastery from AppContext.BaseDirectory; run tests from the neon-sprawl clone.");

    internal static string DiscoverRepoMasteryCatalogSchemaPath() =>
        MasteryCatalogPathResolution.ResolveMasteryCatalogSchemaPath(
            DiscoverRepoMasteryDirectory(),
            configuredSchemaPath: null,
            contentRootPath: string.Empty);
}
