neon-sprawl/server/NeonSprawl.Server.Tests/Game/Mastery/MasteryCatalogTestPaths.cs

18 lines
731 B
C#

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);
}