Exemplo n.º 1
0
        public void Close_ShouldGoToClosing()
        {
            // Act
            _state.Close();

            // Assert
            _context.LastSetState.Should().BeOfType <ConnectionClosingState>();
        }
Exemplo n.º 2
0
        public void Close_ShouldGoToClosing()
        {
            // Act
            _state.Close();

            // Assert
            _context.ShouldQueueCommand <SetClosingStateCommand>();
        }