public void ReturnsNotFiredTransitionResult_WhenGuardIsNotMet() { var guard = Builder <States, Events> .CreateGuardHolder().ReturningFalse().Build(); this.Testee.Guard = guard; ITransitionResult <States, Events> result = this.Testee.Fire(this.TransitionContext); result.Should().BeNotFiredTransitionResult <States, Events>(); }
public void ReturnsSuccessfulTransitionResult() { ITransitionResult <States, Events> result = this.Testee.Fire(this.TransitionContext); result.Should().BeSuccessfulTransitionResultWithNewState(this.Target); }