Moved tests with API requests to WebTests. Refactoring

This commit is contained in:
femsci 2023-11-17 21:34:02 +01:00
parent e9245294a4
commit c3f3cc6acb
Signed by: femsci
GPG key ID: 08F7911F0E650C67
3 changed files with 3 additions and 10 deletions

View file

@ -1,26 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Nyanlabs.Umogen.Core;
namespace Nyanlabs.Umogen.CoreTests;
public class AuthTests
{
[Fact]
public async Task TestTokenVerification()
{
// Given
var rootDir = Environment.CurrentDirectory.Replace("test/Nyanlabs.Umogen.CoreTests/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);
}
}