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