But my characters have plenty of views that I don't share (I write historicals) and my current project has them, including protags, doing things I'd never do. In fact, the idea that authors somehow promote a certain behaviour because it's in their books had never even occurred to me.
So true.
I'm about to sit down and write a scene in my WIP, where my MC has landed himself in the Mamertine prison, and is about to be tortured. Does this mean I condone torture and execution?
No, quite the opposite. I'm actually an active member of Amnesty International!
My MC is an imperialist, doesn't see anything wrong with slavery or his treatment of women, he condones torture as a way to gain information and he thinks execution is justified. In other words, he's a man of his time.
Probably one of the reasons, I thought to make him an anti-hero.