I do not think you would be entitled to a refund / partial refund if they refuse your application. Once they start processing it, the fee is no longer refundable.
Source: cic website help centre, applying general section - I tried to post the link, but I am not allowed.