diff --git a/Tests/Runtime/DialogueRunnerTests/DialogueRunnerTests.cs b/Tests/Runtime/DialogueRunnerTests/DialogueRunnerTests.cs index 4fde5521..48ce29d0 100644 --- a/Tests/Runtime/DialogueRunnerTests/DialogueRunnerTests.cs +++ b/Tests/Runtime/DialogueRunnerTests/DialogueRunnerTests.cs @@ -426,6 +426,18 @@ public void HandleCommand_DispatchesCommandsWithVariadicParameters(string comman Assert.AreEqual(CommandDispatchResult.StatusType.Succeeded, result.Status); } + [TestCase("testInstanceVariadic DialogueRunner 1 one")] + [TestCase("testInstanceVariadic DialogueRunner 1 true too")] + [TestCase("testStaticVariadic 1 one")] + [TestCase("testStaticVariadic 1 true too")] + public void HandleCommand_InvalidVariadicParameters_ShouldFail(string command) + { + var dispatcher = runner.CommandDispatcher; + + var result = dispatcher.DispatchCommand(command, runner); + + Assert.AreEqual(CommandDispatchResult.StatusType.InvalidParameter, result.Status); + } [Test] public void AddCommandHandler_RegistersCommands()