From 52854b2ad3099bb7e253b186aec46481e6bb47e1 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Wed, 15 Feb 2023 19:50:39 +0100 Subject: [PATCH] test: adjust types in test for walk command handler --- .../Commands/Walking/WalkCommandHandlerTests.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Tests/NosSmooth.Core.Tests/Commands/Walking/WalkCommandHandlerTests.cs b/Tests/NosSmooth.Core.Tests/Commands/Walking/WalkCommandHandlerTests.cs index a6fb9a954a0f0906b4aed918dac4be5ce8acc4bc..27fc551a38503ee205262e6f24cd2188f19de406 100644 --- a/Tests/NosSmooth.Core.Tests/Commands/Walking/WalkCommandHandlerTests.cs +++ b/Tests/NosSmooth.Core.Tests/Commands/Walking/WalkCommandHandlerTests.cs @@ -34,7 +34,7 @@ public class WalkCommandHandlerTests ( 0, 0, - new (int, short, short)[] + new (long, short, short)[] { (1, 0, 0), (2, 0, 0) @@ -51,7 +51,7 @@ public class WalkCommandHandlerTests { calledPlayerWalk = true; } - if (c is PetWalkCommand) + if (c is MateWalkCommand) { calledPetWalk = true; } @@ -76,7 +76,7 @@ public class WalkCommandHandlerTests ( 0, 0, - new (int, short, short)[] + new (long, short, short)[] { (2, 0, 0), (5, 0, 0), @@ -158,7 +158,7 @@ public class WalkCommandHandlerTests ( 10, 15, - new (int, short, short)[] + new (long, short, short)[] { (1, 0, 0), (2, 0, 0), @@ -177,9 +177,9 @@ public class WalkCommandHandlerTests ( (c, _) => { - if (c is PetWalkCommand petWalkCommand) + if (c is MateWalkCommand petWalkCommand) { - if (command.Pets?.Select(x => x.PetSelector).Contains(petWalkCommand.PetSelector) ?? false) + if (command.Pets?.Select(x => x.MateId).Contains(petWalkCommand.MateId) ?? false) { calledCount++; } @@ -208,7 +208,7 @@ public class WalkCommandHandlerTests ( 10, 15, - new (int, short, short)[] + new (long, short, short)[] { (1, 0, 1), (2, 1, 0), @@ -227,7 +227,7 @@ public class WalkCommandHandlerTests ( (c, _) => { - if (c is PetWalkCommand petWalkCommand) + if (c is MateWalkCommand petWalkCommand) { Assert.True (