I was not surprised to hear that Harry had failed his driving test.
A.By having failed his driving test, Harry made no surprise.
B.If Harry had not failed his driving test, I would have been surprised.
C.Harry’s having failed his driving test is not my surprise.
D.It came as no surprise to me that Harry had failed his driving test.