コード例 #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();
        }