You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using value based trigger parameters, CanFire returns true by default. For example:
var valueTrigger = stateMachine.SetTriggerParameters<int>(Trigger.X); stateMachine.Configure(State.Y).PermitIf(valueTrigger, State.Z, i => i < 5); Assert.IsFalse(stateMachine.CanFire(Trigger.X));
The assertion fails because when no parameter is used for a trigger, the default value for the parameter type is used in PermitIf.
The text was updated successfully, but these errors were encountered:
mclift
added a commit
to mclift/stateless
that referenced
this issue
May 12, 2024
When using value based trigger parameters, CanFire returns true by default. For example:
var valueTrigger = stateMachine.SetTriggerParameters<int>(Trigger.X);
stateMachine.Configure(State.Y).PermitIf(valueTrigger, State.Z, i => i < 5);
Assert.IsFalse(stateMachine.CanFire(Trigger.X));
The assertion fails because when no parameter is used for a trigger, the default value for the parameter type is used in PermitIf.
The text was updated successfully, but these errors were encountered: