예제 #1
0
 public void MeetupStateInvalidTransitionTest(MeetupState from, MeetupState to)
 {
     Assert.False(from.CanTransitionTo(to));
     Assert.Throws <ArgumentException>(() => from.TransitionTo(to));
 }
예제 #2
0
 public void Given_State_When_TransitionInvalidState_Then_Throws(MeetupState from, MeetupState to) =>
 Assert.Throws <ArgumentException>(() => from.TransitionTo(to));
예제 #3
0
 public void MeetupStateValidTransitionTest(MeetupState from, MeetupState to)
 {
     Assert.True(from.CanTransitionTo(to));
     Assert.Equal(to, from.TransitionTo(to));
 }
예제 #4
0
 public void Given_State_When_TransitionAllowedState_Then_Transitioned(MeetupState from, MeetupState to) =>
 Assert.Equal(to, from.TransitionTo(to));