public void WhenConnectCalled_MovesToConnectingState() { // Act _state.Connect(); // Assert _context.StateShouldBe <ConnectionConnectingState>(); }
public void WhenConnectCalled_MovesToConnectingState() { // Act var command = _state.Connect(); // Assert command.Should().BeOfType <SetConnectingStateCommand>(); }