Excluded one assertion on platform where it fails.
Some improvements to detection of classes that can't be used with a partial mock.