コード例 #1
0
 public void MeetupStateInvalidTransitionTest(MeetupState from, MeetupState to)
 {
     Assert.False(from.CanTransitionTo(to));
     Assert.Throws <ArgumentException>(() => from.TransitionTo(to));
 }
コード例 #2
0
 public void MeetupStateValidTransitionTest(MeetupState from, MeetupState to)
 {
     Assert.True(from.CanTransitionTo(to));
     Assert.Equal(to, from.TransitionTo(to));
 }