public void MeetupStateInvalidTransitionTest(MeetupState from, MeetupState to) { Assert.False(from.CanTransitionTo(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)); }