Beispiel #1
0
        public void Close_ShouldGoToClosing()
        {
            // Act
            _state.Close();

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

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