Not even a genius like "Sheldon Cooper" could have predicted the COVID-19 pandemic, but he would know how to handle life in quarantine. In a new interview on The Tonight Show, actor Jim Parsons told Jimmy Fallon that battling the virus last spring made him imagine how his Big Bang Theory character would respond if faced with the health crisis.

Jim Parsons reveals he tested positive for COVID-19

Joining Fallon to promote his film The Boys in the Band, Parsons made the shocking announcement that he tested positive for COVID-19 along with husband Todd Spiewak last spring. 

Todd Spiewak and Jim Parsons at the GLSEN Respect Awards red carpet in 2019.

"Yeah, we had it. Todd and I both had it early on, like the middle of March," Parsons told Fallon. "We didn't know what it was. We thought we had colds. Then it seemed less likely and then finally we lost our sense of smell and taste.

"I didn't realize how completely taste and smell can be gone," he added. "And when you are in quarantine and there's really nothing to do but eat. My God, that was brutal."

Jim Parsons on "Sheldon Cooper" in the COVID-19 pandemic

However, Parsons took on his recovery period with optimism, even imagining how "Sheldon Cooper," the famous physicist he played on The Big Bang Theory, would react to the pandemic.

Jim Parsons in a scene from the series 'The Big Bang Theory'.

"[Sheldon] was built for this. This is the moment he was waiting for," Parsons explained. "We had an entire episode, where he did like a shell-bot. He had a video screen on a remote-control wheelie thing," he joked, recalling an episode with "Sheldon" communicating using only a robot and an iPad.

"And that was when people still needed to get together in groups, and so he would just send that out and sit in his room. Don't touch me, don't sneeze on me. I guess he'd be fine."

Fortunately, Parsons and his husband of three years managed to overcome the disease and are currently in good health.

Find out what else Parsons has been up to since The Big Bang Theory here!

'The Big Bang Theory' quiz true or false game trivia questions TBBT cast TV show series sitcom

Mayim Bialik ("Amy Farrah Fowler") used to star in the sitcom 'Roseanne'.