Extension-level unit testing

Hello MW members, does any one of you here done a extension-level unit testing? I will be implementing it and will need guide along the way. Thank you!
@Dev1@OptiBiz1 - Unfortunately for now you're on your own when it comes down to unit testing since we have no tests in the main application and it would take a huge amount of work to get a decent coverage...