Пример #1
0
        public void Init_ShouldStartNewDefusingTimer()
        {
            // When
            _initDefusing.Init();

            // Then
            _defusingState
            .Received()
            .StartNewTimer();
        }
Пример #2
0
        public void Try_ShouldIncrementBombsDefused_WhenPlayerIsDefuser()
        {
            // Given
            var player = new Player("Player");

            _defusingState.IsCurrentAttemptDefuser(player)
            .Returns(true);

            // When
            _tryToDefuse.Try(player);

            // Then
            _defusingState
            .Received()
            .IncrementBombsDefused();
        }