示例#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>();
        }