Skip to content

Commit

Permalink
Update behaviour of HandleCommand_FailsWhenParameterTypesNotValid
Browse files Browse the repository at this point in the history
Command dispatch now returns a different error code when dispatch fails due to an invalid parameter type
  • Loading branch information
desplesda committed May 23, 2024
1 parent 3adb295 commit d67e1e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/Runtime/DialogueRunnerTests/DialogueRunnerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ public void HandleCommand_FailsWhenParameterTypesNotValid(string command, string
var regex = new Regex(error);

var result = dispatcher.DispatchCommand(command, runner);
Assert.AreEqual(CommandDispatchResult.StatusType.InvalidParameterCount, result.Status);
Assert.AreEqual(CommandDispatchResult.StatusType.InvalidParameter, result.Status);
Assert.That(regex.IsMatch(result.Message));
}

Expand Down

0 comments on commit d67e1e5

Please sign in to comment.