Example #1
0
        public void WhenConnectCalled_MovesToConnectingState()
        {
            // Act
            _state.Connect();

            // Assert
            _context.StateShouldBe <ConnectionConnectingState>();
        }
Example #2
0
        public void WhenConnectCalled_MovesToConnectingState()
        {
            // Act
            var command = _state.Connect();

            // Assert
            command.Should().BeOfType <SetConnectingStateCommand>();
        }