The Chinese author Wang Xiaofang learned to write corruption exposés the hard way. His decade as a pen-pushing civil servant culminated in a three-year investigation for corruption while his boss, the deputy mayor of the rust-belt city of Shenyang, was executed for gambling away $3.6 million of public money in Macau’s casinos.