umogen-ng/test/Nyanlabs.Umogen.WebTests/AuthTests.cs

21 lines
489 B
C#

using Nyanlabs.Umogen.Core;
namespace Nyanlabs.Umogen.WebTests;
public class AuthTests
{
[Fact]
public async Task TestTokenVerification()
{
// Given
var rootDir = Environment.CurrentDirectory.Replace("test/Nyanlabs.Umogen.WebTests/bin/Debug/net8.0", "");
UmoEngine eng = new(Path.Combine(rootDir, Core.Umogen.DEFAULT_API_KEY_FILE));
// When
var result = await eng.ValidateKey();
// Then
Assert.True(result);
}
}