コード例 #1
0
        public void SetNewDefuseAttempt_ShouldSetCurrentDefuseAttempt()
        {
            // When
            _defusingState.SetNewDefuseAttempt(_currentDefuseAttempt);

            // Then
            Assert.That(_defusingState.CurrentDefuseAttempt, Is.EqualTo(_currentDefuseAttempt));
        }
コード例 #2
0
        public virtual void Set()
        {
            var nbBombsDefused = _defusingState.NbBombsDefused;
            var defuseAttempt  = new DefuseAttempt(_random, _defuserCounter, _allBombs, _allPlayers.GetAll(), nbBombsDefused);

            _defusingState.SetNewDefuseAttempt(defuseAttempt);

            _newDefuseAttemptSetListener.OnNewDefuseAttemptSet(defuseAttempt);
        }