Step1:build unit test projects with gtest/gmock
1.Download gtest source
Go to the Site:https://code.google.com/p/googletest/downloads/list download the source.
2.Build gtest source
Go the msvc directory, open the project file with vs2008.
Build gtest project. if build success, you wi