mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-07-14 17:43:19 +01:00
Fix RawRequestTests assertions
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Net;
|
||||
@@ -469,7 +469,9 @@ namespace Tgstation.Server.Tests.Live
|
||||
result = await client.Login.ExecuteAsync(cancellationToken);
|
||||
});
|
||||
|
||||
Assert.IsNull(result.Data.Login);
|
||||
Assert.IsNotNull(result.Data);
|
||||
Assert.IsNull(result.Data.Login.String);
|
||||
Assert.IsNotNull(result.Data.Login.Errors);
|
||||
Assert.AreEqual(1, result.Data.Login.Errors.Count);
|
||||
var castResult = result.Data.Login.Errors.First() is ILogin_Login_Errors_ErrorMessageError loginError;
|
||||
Assert.IsTrue(castResult);
|
||||
|
||||
Reference in New Issue
Block a user