~ruther/NosSmooth

52854b2ad3099bb7e253b186aec46481e6bb47e1 — Rutherther 2 years ago 27edbda
test: adjust types in test for walk command handler
1 files changed, 8 insertions(+), 8 deletions(-)

M Tests/NosSmooth.Core.Tests/Commands/Walking/WalkCommandHandlerTests.cs
M Tests/NosSmooth.Core.Tests/Commands/Walking/WalkCommandHandlerTests.cs => Tests/NosSmooth.Core.Tests/Commands/Walking/WalkCommandHandlerTests.cs +8 -8
@@ 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
                        (

Do not follow this link