Beispiel #1
0
        public void SetCurrentState_InProgressState_CurrentStateShouldReturnClosedMatchState()
        {
            var match = new Match();

            match.MatchState = MatchState.Closed;

            Assert.IsInstanceOf <ClosedMatchState>(match.CurrentState);
        }
Beispiel #2
0
        public void SetCurrentState_InvalidState_ShouldThrowException()
        {
            var match = new Match();

            Assert.Throws <InvalidOperationException>(() => match.MatchState = (MatchState)int.MaxValue);
        }