public void MeetupStateInvalidTransitionTest(MeetupState from, MeetupState to) { Assert.False(from.CanTransitionTo(to)); Assert.Throws <ArgumentException>(() => from.TransitionTo(to)); }
public void Given_State_When_TransitionInvalidState_Then_Throws(MeetupState from, MeetupState to) => Assert.Throws <ArgumentException>(() => from.TransitionTo(to));
public void MeetupStateValidTransitionTest(MeetupState from, MeetupState to) { Assert.True(from.CanTransitionTo(to)); Assert.Equal(to, from.TransitionTo(to)); }
public void Given_State_When_TransitionAllowedState_Then_Transitioned(MeetupState from, MeetupState to) => Assert.Equal(to, from.TransitionTo(to));