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

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

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