neon-sprawl/server/NeonSprawl.Server.Tests/Game/Skills/SkillCatalogTestPaths.cs

17 lines
670 B
C#

namespace NeonSprawl.Server.Tests.Game.Skills;
internal static class SkillCatalogTestPaths
{
internal static string DiscoverRepoSkillsDirectory() =>
SkillCatalogPathResolution.TryDiscoverSkillsDirectory(AppContext.BaseDirectory)
?? throw new InvalidOperationException(
"Could not discover repo content/skills from AppContext.BaseDirectory; run tests from the neon-sprawl clone.");
internal static string DiscoverRepoSkillDefSchemaPath() =>
SkillCatalogPathResolution.ResolveSkillDefSchemaPath(
DiscoverRepoSkillsDirectory(),
configuredSchemaPath: null,
contentRootPath: string.Empty);
}