It turns out that we don't have unit tests that cover SQLCommand in this way, and I don't think the effort to add a new category of testing is worth it in this case. I'll thoroughly test it manually, if that's okay.