Let’s try:
testing \ensuremath{1+2=3} here.

Here is an attempt:
testing \(1+2=3\) here.