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

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

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