Updated dependencies and project to C# 12 Added primary constructors and many other refactorings
This commit is contained in:
@ -2,6 +2,7 @@ using System.Text.Json;
|
||||
using BackendTests.TestUtils;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using NSubstitute;
|
||||
using pacMan.DTOs;
|
||||
using pacMan.Exceptions;
|
||||
using pacMan.GameStuff;
|
||||
using pacMan.GameStuff.Items;
|
||||
@ -99,28 +100,6 @@ public class ActionServiceTests
|
||||
|
||||
#endregion
|
||||
|
||||
#region DoAction(ActionMessage message)
|
||||
|
||||
[Test]
|
||||
public void DoAction_NegativeAction()
|
||||
{
|
||||
const string data = "Nothing happens";
|
||||
var message = new ActionMessage { Action = (GameAction)(-1), Data = data };
|
||||
_service.DoAction(message);
|
||||
Assert.That(message.Data, Is.EqualTo(data));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void DoAction_OutOfBoundsAction()
|
||||
{
|
||||
const string data = "Nothing happens";
|
||||
var message = new ActionMessage { Action = (GameAction)100, Data = data };
|
||||
_service.DoAction(message);
|
||||
Assert.That(message.Data, Is.EqualTo(data));
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Ready()
|
||||
|
||||
[Test]
|
||||
|
@ -1,7 +1,6 @@
|
||||
using System.Net.WebSockets;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using NSubstitute;
|
||||
using pacMan.Interfaces;
|
||||
using pacMan.Services;
|
||||
using pacMan.Utils;
|
||||
|
||||
|
Reference in New Issue
Block a user