Ejemplo n.º 1
0
        public void WhenCloseCalled_ShouldChangeStateToClosing()
        {
            // Act
            _state.Close();

            // Assert
            _context.ShouldQueueCommand <SetClosingStateCommand>();
        }
Ejemplo n.º 2
0
        public void WhenCloseCalled_ShouldCHangeStateToClosing()
        {
            // Act
            _state.Close();

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