public void Close_ShouldGoToClosing() { // Act _state.Close(); // Assert _context.LastSetState.Should().BeOfType <ConnectionClosingState>(); }
public void Close_ShouldGoToClosing() { // Act _state.Close(); // Assert _context.ShouldQueueCommand <SetClosingStateCommand>(); }