예제 #1
0
        public void WhenCloseCalled_ShouldChangeStateToClosing()
        {
            // Act
            _state.Close();

            // Assert
            _context.ShouldQueueCommand <SetClosingStateCommand>();
        }
예제 #2
0
        public void WhenCloseCalled_ShouldCHangeStateToClosing()
        {
            // Act
            _state.Close();

            // Assert
            _context.StateShouldBe <ConnectionClosingState>();
        }