I prefer Option A over Option B. While you do then end upup resting both the port and the adapter in one go, the port and adapter together constitute the unit you are trying to test: the piece of code that allows you to manipulate the widget in question.
Option B IMHO, in my opinion, is perhaps a tad too granular.
My 2p... :)