Irony

Definition: a technique of indicating, as through character or play development, an intention or attitude opposite to that which is actually or ostensibly stated

Example
Joe said, "How nice!" when I said I had to work all weekend.