Moved tests with API requests to WebTests. Refactoring
This commit is contained in:
parent
e9245294a4
commit
c3f3cc6acb
3 changed files with 3 additions and 10 deletions
21
test/Nyanlabs.Umogen.WebTests/AuthTests.cs
Normal file
21
test/Nyanlabs.Umogen.WebTests/AuthTests.cs
Normal file
|
@ -0,0 +1,21 @@
|
|||
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);
|
||||
}
|
||||
}
|
|
@ -1 +1 @@
|
|||
global using Xunit;
|
||||
global using Xunit;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue