LIB:Adopted code from http://unittest-cpp.sourceforge.net