Fixed test, deprecated method, and changes it's uses

This commit is contained in:
martin
2023-07-31 22:19:55 +02:00
parent dd6b493830
commit 89d2935323
5 changed files with 7 additions and 9 deletions

View File

@ -148,8 +148,9 @@ public class ActionServiceTests
[Test]
public void Ready_NotAllReady()
{
var game = _gameService.CreateAndJoin(_whitePlayer, _spawns);
_gameService.JoinById(game.Id, _blackPlayer);
_service.SetPlayerInfo(_whiteMessage.Data);
_service.SetPlayerInfo(_blackMessage.Data);
var result = _service.Ready();
if (result is ReadyData r1)
@ -157,6 +158,7 @@ public class ActionServiceTests
else
Assert.Fail("Result should be ReadyData");
_gameService.JoinById(game.Id, _redPlayer);
_service.SetPlayerInfo(_redMessage.Data);
result = _service.Ready();